From d095b0552249fa032ff2e95b1250dcb3e171d09e Mon Sep 17 00:00:00 2001 From: Efthymis Sarmpanis Date: Fri, 3 May 2019 18:28:16 +0300 Subject: [PATCH] Updated primaryColor docs to refer to colorScheme properties (#31902) --- packages/flutter/lib/src/material/theme_data.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/flutter/lib/src/material/theme_data.dart b/packages/flutter/lib/src/material/theme_data.dart index b766d34dad..87a074cf16 100644 --- a/packages/flutter/lib/src/material/theme_data.dart +++ b/packages/flutter/lib/src/material/theme_data.dart @@ -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