mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
(android) Show/Hide status bar in viewer
This commit is contained in:
parent
a0382d2b16
commit
9d2e1798f7
1 changed files with 11 additions and 0 deletions
|
@ -86,6 +86,12 @@ class _ViewerState extends State<Viewer> {
|
|||
);
|
||||
}
|
||||
|
||||
@override
|
||||
dispose() {
|
||||
super.dispose();
|
||||
SystemChrome.setEnabledSystemUIOverlays(SystemUiOverlay.values);
|
||||
}
|
||||
|
||||
Widget _buildWebContent(BuildContext context) {
|
||||
assert(platform_k.isWeb);
|
||||
// support switching pages with keyboard on web
|
||||
|
@ -661,6 +667,11 @@ class _ViewerState extends State<Viewer> {
|
|||
|
||||
void _setShowActionBar(bool flag) {
|
||||
_isShowAppBar = flag;
|
||||
if (flag) {
|
||||
SystemChrome.setEnabledSystemUIOverlays(SystemUiOverlay.values);
|
||||
} else {
|
||||
SystemChrome.setEnabledSystemUIOverlays([SystemUiOverlay.bottom]);
|
||||
}
|
||||
}
|
||||
|
||||
void _openDetailPane(int index, {bool shouldAnimate = false}) {
|
||||
|
|
Loading…
Reference in a new issue