fix AppBar's docs for backgroundColor (#126194)

This commit is contained in:
Viren Khatri
2023-05-09 20:59:53 +05:30
committed by GitHub
parent 8c5a1ea728
commit 5b87e4fba4

View File

@@ -132,7 +132,8 @@ class _PreferredAppBarSize extends Size {
/// be visible if their foreground (text) color is the same as the
/// app bar's background color.
///
/// The default app bar [backgroundColor] is the overall theme's
/// In Material v2 (i.e., when [ThemeData.useMaterial3] is false),
/// the default app bar [backgroundColor] is the overall theme's
/// [ColorScheme.primary] if the overall theme's brightness is
/// [Brightness.light]. Unfortunately this is the same as the default
/// [ButtonStyle.foregroundColor] for [TextButton] for light themes.