From 42bac49337f34c67b6b58f696352c2dd4b83bbde Mon Sep 17 00:00:00 2001 From: Steef Hegeman Date: Wed, 8 Dec 2021 00:08:20 +0100 Subject: [PATCH] =?UTF-8?q?systemNavigationBarColor=20=E2=86=90=20appBar.b?= =?UTF-8?q?ackgroundColor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- lib/main.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/main.dart b/lib/main.dart index 9ac74a65..730dd2cd 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -146,7 +146,8 @@ class _FluffyChatAppState extends State { 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