mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-25 21:05:52 +08:00
hide systembar when preview
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -62,21 +62,22 @@ Future<void>? fullMode() {
|
||||
);
|
||||
}
|
||||
|
||||
bool _showStatusBar = true;
|
||||
Future<void>? hideStatusBar() {
|
||||
if (!_showStatusBar) {
|
||||
bool _showSystemBar = true;
|
||||
bool get showSystemBar_ => _showSystemBar;
|
||||
Future<void>? hideSystemBar() {
|
||||
if (!_showSystemBar) {
|
||||
return null;
|
||||
}
|
||||
_showStatusBar = false;
|
||||
_showSystemBar = false;
|
||||
return SystemChrome.setEnabledSystemUIMode(.immersiveSticky);
|
||||
}
|
||||
|
||||
//退出全屏显示
|
||||
Future<void>? showStatusBar() {
|
||||
if (_showStatusBar) {
|
||||
Future<void>? showSystemBar() {
|
||||
if (_showSystemBar) {
|
||||
return null;
|
||||
}
|
||||
_showStatusBar = true;
|
||||
_showSystemBar = true;
|
||||
return SystemChrome.setEnabledSystemUIMode(
|
||||
Platform.isAndroid && Utils.sdkInt < 29 ? .manual : .edgeToEdge,
|
||||
overlays: SystemUiOverlay.values,
|
||||
|
||||
Reference in New Issue
Block a user