mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: 竖屏改为只持续两秒
This commit is contained in:
@@ -200,20 +200,20 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
plPlayerController!.isFullScreen.listen((bool status) {
|
||||
if (status) {
|
||||
videoDetailController.hiddenReplyReplyPanel();
|
||||
hideStatusBar();
|
||||
// hideStatusBar();
|
||||
}
|
||||
isFullScreen.value = status;
|
||||
if (mounted) {
|
||||
setState(() {});
|
||||
}
|
||||
if (!status) {
|
||||
showStatusBar();
|
||||
if (horizontalScreen) {
|
||||
autoScreen();
|
||||
} else {
|
||||
verticalScreen();
|
||||
}
|
||||
}
|
||||
// if (!status) {
|
||||
// showStatusBar();
|
||||
// if (horizontalScreen) {
|
||||
// autoScreen();
|
||||
// } else {
|
||||
// verticalScreenForTwoSeconds();
|
||||
// }
|
||||
// }
|
||||
});
|
||||
}
|
||||
|
||||
@@ -371,7 +371,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
if (MediaQuery.of(context).orientation ==
|
||||
Orientation.landscape &&
|
||||
!horizontalScreen) {
|
||||
verticalScreen();
|
||||
verticalScreenForTwoSeconds();
|
||||
}
|
||||
},
|
||||
child: Stack(
|
||||
@@ -623,7 +623,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
if (MediaQuery.of(context).orientation ==
|
||||
Orientation.landscape &&
|
||||
!horizontalScreen) {
|
||||
verticalScreen();
|
||||
verticalScreenForTwoSeconds();
|
||||
}
|
||||
},
|
||||
child: Stack(
|
||||
|
||||
Reference in New Issue
Block a user