From a9634380a0e723e8f20aba6165edd68a8366d232 Mon Sep 17 00:00:00 2001 From: shilangyu Date: Thu, 17 Sep 2020 00:29:35 +0200 Subject: [PATCH] fixed susyemnavigationbarcolor --- lib/main.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index dbea885..0062dbb 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -4,10 +4,10 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_hooks/flutter_hooks.dart'; import 'package:flutter_mobx/flutter_mobx.dart'; -import 'package:lemmur/pages/profile_tab.dart'; import 'package:provider/provider.dart'; import 'hooks/stores.dart'; +import 'pages/profile_tab.dart'; import 'stores/accounts_store.dart'; import 'stores/config_store.dart'; @@ -73,11 +73,11 @@ class MyHomePage extends HookWidget { final theme = Theme.of(context); useEffect(() { - print('about to change'); - print(theme.scaffoldBackgroundColor); - SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle( - systemNavigationBarColor: theme.scaffoldBackgroundColor, - )); + Future.microtask( + () => SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle( + systemNavigationBarColor: theme.scaffoldBackgroundColor, + )), + ); return null; }, [theme.scaffoldBackgroundColor]);