Reputation: 67
A lot of times when I use a NavigationBar paired with a Material3 Theme, the Android's NavigationBar color is usually set to the app's background color, istead of matching the NavBar.
Problem:
Target:
Upvotes: 0
Views: 30
Reputation: 67
A simple fix is to use systemOverlayStyle
in appBar
of the Scaffold.
Scaffold(
appBar: AppBar(
systemOverlayStyle: SystemUiOverlayStyle(
systemNavigationBarColor: ElevationOverlay.applySurfaceTint(
Theme.of(context).colorScheme.background,
Theme.of(context).colorScheme.surfaceTint,
3,
),
),
),
);
Upvotes: 1