Skip to content

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

add on pop judgement

ErBW_s52686a13acd7
diff --git a/lib/pages/player/player_item.dart b/lib/pages/player/player_item.dart
index 2f34c0ed..141308fa 100644
--- a/lib/pages/player/player_item.dart
+++ b/lib/pages/player/player_item.dart
@@ -336,9 +336,11 @@ class _PlayerItemState extends State<PlayerItem>
}
}
if (mounted) {
+ if (videoPageController.androidFullscreen == true) {
+ Utils.exitFullScreen();
+ videoPageController.androidFullscreen = false;
+ }
Navigator.of(context).pop();
- Utils.exitFullScreen();
- videoPageController.androidFullscreen = false;
}
// Navigator.of(context).pop();
}
@@ -1449,8 +1451,11 @@ class _PlayerItemState extends State<PlayerItem>
widget.openMenu();
},
),
- (Utils.isTablet() && videoPageController.androidFullscreen)
- ? Container()
+ (Utils.isTablet() &&
+ videoPageController.androidFullscreen &&
+ MediaQuery.of(context).size.height <
+ MediaQuery.of(context).size.width)
+ ? Container()
: IconButton(
color: Colors.white,
icon: Icon(
diff --git a/lib/pages/video/video_page.dart b/lib/pages/video/video_page.dart
index ff02c02b..ac34ca0d 100644
--- a/lib/pages/video/video_page.dart
+++ b/lib/pages/video/video_page.dart
@@ -236,7 +236,9 @@ class _VideoPageState extends State<VideoPage>
SlideTransition(position: _rightOffsetAnimation,
child: SizedBox(
height: MediaQuery.of(context).size.height,
- width: MediaQuery.of(context).size.height,
+ width: (Utils.isTablet())
+ ? MediaQuery.of(context).size.width / 2
+ : MediaQuery.of(context).size.height,
child: Container(
color: Theme.of(context).canvasColor,
child: GridViewObserver(
@@ -353,10 +355,16 @@ class _VideoPageState extends State<VideoPage>
true && !Utils.isTablet()) {
Utils.exitFullScreen();
menuJumpToCurrentEpisode();
+ videoPageController.androidFullscreen =
+ false;
return;
}
- Utils.exitFullScreen();
- videoPageController.androidFullscreen = false;
+ if (videoPageController.androidFullscreen ==
+ true) {
+ Utils.exitFullScreen();
+ videoPageController.androidFullscreen =
+ false;
+ }
Navigator.of(context).pop();
},
),