Commit d095b055 authored by Efthymis Sarmpanis's avatar Efthymis Sarmpanis Committed by Shi-Hao Hong

Updated primaryColor docs to refer to colorScheme properties (#31902)

parent 7beb09e7
......@@ -476,6 +476,11 @@ class ThemeData extends Diagnosticable {
final Brightness brightness;
/// The background color for major parts of the app (toolbars, tab bars, etc)
///
/// The theme's [colorScheme] property contains [ColorScheme.primary], as
/// well as a color that contrasts well with the primary color called
/// [ColorScheme.onPrimary]. It might be simpler to just configure an app's
/// visuals in terms of the theme's [colorScheme].
final Color primaryColor;
/// The brightness of the [primaryColor]. Used to determine the color of text and
......
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