Skip to content

Commit 82eb41e

Browse files
committed
ui: Maintain consistent color in AppBar
1 parent c1fe04b commit 82eb41e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/widgets/app.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ class ZulipApp extends StatelessWidget {
8181
@override
8282
Widget build(BuildContext context) {
8383
final theme = ThemeData(
84+
appBarTheme: const AppBarTheme(
85+
// This prevents an elevation change in [AppBar]s so they stop turning
86+
// darker if there is something scrolled underneath it. See docs:
87+
// https://api.flutter.dev/flutter/material/AppBar/elevation.html
88+
scrolledUnderElevation: 0,
89+
),
8490
// This applies Material 3's color system to produce a palette of
8591
// appropriately matching and contrasting colors for use in a UI.
8692
// The Zulip brand color is a starting point, but doesn't end up as

0 commit comments

Comments
 (0)