From 158cf8a0cbcc7dd67f4c839239b615ecde1f1b13 Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Sun, 6 Oct 2024 15:29:04 +0800 Subject: [PATCH] mod: statusbar: partial revert --- lib/pages/video/detail/view.dart | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/pages/video/detail/view.dart b/lib/pages/video/detail/view.dart index 26a685043..f88bb2378 100644 --- a/lib/pages/video/detail/view.dart +++ b/lib/pages/video/detail/view.dart @@ -461,21 +461,21 @@ class _VideoDetailPageState extends State 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,