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:
parent
eba271f8ae
commit
5884effc7f
1 changed files with 2 additions and 1 deletions
|
|
@ -146,7 +146,8 @@ class _FluffyChatAppState extends State<FluffyChatApp> {
|
||||||
SystemChrome.setSystemUIOverlayStyle(
|
SystemChrome.setSystemUIOverlayStyle(
|
||||||
SystemUiOverlayStyle(
|
SystemUiOverlayStyle(
|
||||||
statusBarColor: Colors.transparent,
|
statusBarColor: Colors.transparent,
|
||||||
systemNavigationBarColor: Theme.of(context).backgroundColor,
|
systemNavigationBarColor:
|
||||||
|
Theme.of(context).appBarTheme.backgroundColor,
|
||||||
systemNavigationBarIconBrightness:
|
systemNavigationBarIconBrightness:
|
||||||
Theme.of(context).brightness == Brightness.light
|
Theme.of(context).brightness == Brightness.light
|
||||||
? Brightness.dark
|
? Brightness.dark
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue