systemNavigationBarColor ← appBar.backgroundColor

Makes the system navigation bar color (on Android) follow the color of
the appBar (and hence of the spaces bar).

See also https://gitlab.com/famedly/fluffychat/-/issues/699.
This commit is contained in:
Steef Hegeman 2021-12-08 00:08:20 +01:00
parent 0da1279510
commit 42bac49337
1 changed files with 2 additions and 1 deletions

View File

@ -146,7 +146,8 @@ class _FluffyChatAppState extends State<FluffyChatApp> {
SystemChrome.setSystemUIOverlayStyle(
SystemUiOverlayStyle(
statusBarColor: Colors.transparent,
systemNavigationBarColor: Theme.of(context).backgroundColor,
systemNavigationBarColor:
Theme.of(context).appBarTheme.backgroundColor,
systemNavigationBarIconBrightness:
Theme.of(context).brightness == Brightness.light
? Brightness.dark