Skip to content

基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。

revert ios status bar

Predidite341457d4aac
diff --git a/lib/pages/video/video_controller.dart b/lib/pages/video/video_controller.dart
index 809bf825..4794abf0 100644
--- a/lib/pages/video/video_controller.dart
+++ b/lib/pages/video/video_controller.dart
@@ -88,13 +88,6 @@ abstract class _VideoPageController with Store {
}
Future<void> enterFullScreen() async {
- if (Platform.isIOS) {
- SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
- systemNavigationBarColor: Colors.black,
- systemNavigationBarDividerColor: Colors.black,
- statusBarColor: Colors.black,
- ));
- }
if (Platform.isWindows || Platform.isLinux || Platform.isMacOS) {
await windowManager.setFullScreen(true);
return;
@@ -107,13 +100,6 @@ abstract class _VideoPageController with Store {
//退出全屏显示
Future<void> exitFullScreen() async {
- if (Platform.isIOS) {
- SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
- systemNavigationBarColor: Colors.transparent,
- systemNavigationBarDividerColor: Colors.transparent,
- statusBarColor: Colors.transparent,
- ));
- }
if (Platform.isWindows || Platform.isLinux || Platform.isMacOS) {
await windowManager.setFullScreen(false);
}
diff --git a/lib/pages/video/video_page.dart b/lib/pages/video/video_page.dart
index 75917eb4..e2fe714e 100644
--- a/lib/pages/video/video_page.dart
+++ b/lib/pages/video/video_page.dart
@@ -41,13 +41,13 @@ class _VideoPageState extends State<VideoPage>
void initState() {
super.initState();
WakelockPlus.enable();
- // if (Platform.isAndroid || Platform.isIOS) {
- // SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
- // systemNavigationBarColor: Colors.black,
- // systemNavigationBarDividerColor: Colors.black,
- // statusBarColor: Colors.black,
- // ));
- // }
+ if (Platform.isIOS) {
+ SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
+ systemNavigationBarColor: Colors.black,
+ systemNavigationBarDividerColor: Colors.black,
+ statusBarColor: Colors.black,
+ ));
+ }
videoPageController.currentEspisode = 1;
videoPageController.currentRoad = 0;
videoPageController.historyOffset = 0;
@@ -74,13 +74,13 @@ class _VideoPageState extends State<VideoPage>
@override
void dispose() {
- // if (Platform.isAndroid || Platform.isIOS) {
- // SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
- // systemNavigationBarColor: Colors.transparent,
- // systemNavigationBarDividerColor: Colors.transparent,
- // statusBarColor: Colors.transparent,
- // ));
- // }
+ if (Platform.isIOS) {
+ SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
+ systemNavigationBarColor: Colors.transparent,
+ systemNavigationBarDividerColor: Colors.transparent,
+ statusBarColor: Colors.transparent,
+ ));
+ }
try {
playerController.mediaPlayer.dispose();
} catch (_) {}