From 5b87e4fba4600b90b139fe74fa8e5a9a3322f1ba Mon Sep 17 00:00:00 2001 From: Viren Khatri <44755140+werainkhatri@users.noreply.github.com> Date: Tue, 9 May 2023 20:59:53 +0530 Subject: [PATCH] fix AppBar's docs for backgroundColor (#126194) --- packages/flutter/lib/src/material/app_bar.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/flutter/lib/src/material/app_bar.dart b/packages/flutter/lib/src/material/app_bar.dart index 21589bf9da..dcddbde68f 100644 --- a/packages/flutter/lib/src/material/app_bar.dart +++ b/packages/flutter/lib/src/material/app_bar.dart @@ -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.