Improve ThemeData.accentColor connection to secondary color (#31295)

This commit is contained in:
Shi-Hao Hong
2019-04-26 19:39:22 -07:00
committed by GitHub
parent 59f4e92b6e
commit 7c4ccb349e

View File

@@ -486,6 +486,13 @@ class ThemeData extends Diagnosticable {
final Color canvasColor;
/// The foreground color for widgets (knobs, text, overscroll edge effect, etc).
///
/// Accent color is also known as the secondary color.
///
/// The theme's [colorScheme] property contains [ColorScheme.secondary], as
/// well as a color that contrasts well with the secondary color called
/// [ColorScheme.onSecondary]. It might be simpler to just configure an app's
/// visuals in terms of the theme's [colorScheme].
final Color accentColor;
/// The brightness of the [accentColor]. Used to determine the color of text