Unverified Commit 7c4ccb34 authored by Shi-Hao Hong's avatar Shi-Hao Hong Committed by GitHub

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

parent 59f4e92b
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment