Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-04-29 12:47:14 +08:00
parent e185ed1a85
commit e0ae93847b
104 changed files with 480 additions and 389 deletions

View File

@@ -1,7 +1,7 @@
import 'dart:async';
import 'dart:io' show Platform;
import 'package:PiliPlus/utils/utils.dart';
import 'package:PiliPlus/utils/device_utils.dart';
import 'package:flutter/services.dart'
show SystemChrome, MethodChannel, SystemUiOverlay, DeviceOrientation;
@@ -79,7 +79,7 @@ Future<void>? showSystemBar() {
}
_showSystemBar = true;
return SystemChrome.setEnabledSystemUIMode(
Platform.isAndroid && Utils.sdkInt < 29 ? .manual : .edgeToEdge,
Platform.isAndroid && DeviceUtils.sdkInt < 29 ? .manual : .edgeToEdge,
overlays: SystemUiOverlay.values,
);
}