Merge pull request #145 from krawieck/fix-navigation-bar
This commit is contained in:
commit
ad0815d7b3
|
@ -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,
|
||||||
)),
|
)),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
extension ReverseBrightness on Brightness {
|
||||||
|
Brightness get reverse =>
|
||||||
|
this == Brightness.dark ? Brightness.light : Brightness.dark;
|
||||||
|
}
|
Loading…
Reference in New Issue