mod: statusbar: partial revert

This commit is contained in:
bggRGjQaUbCoE
2024-10-06 15:29:04 +08:00
parent 65fe9751ef
commit 158cf8a0cb

View File

@@ -461,21 +461,21 @@ class _VideoDetailPageState extends State<VideoDetailPage>
plPlayerController?.direction.value == 'vertical') {
videoHeight = context.width;
}
// if (MediaQuery.of(context).orientation ==
// Orientation.landscape &&
// !horizontalScreen &&
// !isFullScreen &&
// isShowing &&
// mounted) {
// hideStatusBar();
// }
// if (MediaQuery.of(context).orientation ==
// Orientation.portrait &&
// !isFullScreen &&
// isShowing &&
// mounted) {
// if (!removeSafeArea) showStatusBar();
// }
if (MediaQuery.of(context).orientation ==
Orientation.landscape &&
!horizontalScreen &&
!isFullScreen &&
isShowing &&
mounted) {
hideStatusBar();
}
if (MediaQuery.of(context).orientation ==
Orientation.portrait &&
!isFullScreen &&
isShowing &&
mounted) {
if (!removeSafeArea) showStatusBar();
}
return Container(
color:
showStatusBarBackgroundColor ? null : Colors.black,