Merge pull request #145 from krawieck/fix-navigation-bar

This commit is contained in:
Filip Krawczyk 2021-02-09 21:44:59 +01:00 committed by GitHub
commit ad0815d7b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -13,6 +13,7 @@ import 'pages/profile_tab.dart';
import 'pages/search_tab.dart'; import 'pages/search_tab.dart';
import 'stores/accounts_store.dart'; import 'stores/accounts_store.dart';
import 'stores/config_store.dart'; import 'stores/config_store.dart';
import 'util/extensions/brightness.dart';
import 'theme.dart'; import 'theme.dart';
Future<void> main() async { Future<void> main() async {
@ -75,6 +76,7 @@ class MyHomePage extends HookWidget {
Future.microtask( Future.microtask(
() => SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle( () => SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
systemNavigationBarColor: theme.scaffoldBackgroundColor, systemNavigationBarColor: theme.scaffoldBackgroundColor,
systemNavigationBarIconBrightness: theme.brightness.reverse,
)), )),
); );

View File

@ -0,0 +1,6 @@
import 'package:flutter/material.dart';
extension ReverseBrightness on Brightness {
Brightness get reverse =>
this == Brightness.dark ? Brightness.light : Brightness.dark;
}