Skip to content

Commit 5b87e4f

Browse files
authored
fix AppBar's docs for backgroundColor (#126194)
1 parent 8c5a1ea commit 5b87e4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/flutter/lib/src/material/app_bar.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ class _PreferredAppBarSize extends Size {
132132
/// be visible if their foreground (text) color is the same as the
133133
/// app bar's background color.
134134
///
135-
/// The default app bar [backgroundColor] is the overall theme's
135+
/// In Material v2 (i.e., when [ThemeData.useMaterial3] is false),
136+
/// the default app bar [backgroundColor] is the overall theme's
136137
/// [ColorScheme.primary] if the overall theme's brightness is
137138
/// [Brightness.light]. Unfortunately this is the same as the default
138139
/// [ButtonStyle.foregroundColor] for [TextButton] for light themes.

0 commit comments

Comments
 (0)