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

@ -484,7 +484,7 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver, Ticker
floating: true,
pinned: true,
snap: false,
primary: true,
primary: AppSettings().displayMode == DisplayMode.normal,
title: Text(HomeAssistant().locationName ?? ""),
actions: <Widget>[
PopupMenuButton(
@ -645,10 +645,7 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver, Ticker
bottomNavigationBar: BottomInfoBar(
controller: _bottomInfoBarController,
),
body: SafeArea(
top: false,
child: _buildScaffoldBody(true)
)
body: _buildScaffoldBody(true)
);
} else {
return Scaffold(
@ -658,10 +655,7 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver, Ticker
bottomNavigationBar: BottomInfoBar(
controller: _bottomInfoBarController,
),
body: SafeArea(
top: false,
child: _buildScaffoldBody(false)
)
body: _buildScaffoldBody(false)
);
}
}