Resolves #563 Fullscreen mode

This commit is contained in:
Yegor Vialov
2020-05-29 18:16:59 +00:00
parent 096e714a04
commit e0a28c0b59
5 changed files with 57 additions and 15 deletions

View File

@ -185,8 +185,13 @@ void main() async {
};
WidgetsFlutterBinding.ensureInitialized();
await AppSettings().loadAppTheme();
await AppSettings().loadStartupSettings();
await Hive.initFlutter();
if (AppSettings().displayMode == DisplayMode.fullscreen) {
SystemChrome.setEnabledSystemUIOverlays([]);
} else {
SystemChrome.setEnabledSystemUIOverlays(SystemUiOverlay.values);
}
runZoned(() {
runApp(new HAClientApp(