From 10ed5f2ea45d25738c2f7836407db96c120e580d Mon Sep 17 00:00:00 2001 From: Fengning Zhu Date: Sun, 13 Jul 2025 03:47:38 +0000 Subject: [PATCH] fix: resolve fullscreen UI offset issue on some Android tablets (#873) --- lib/pages/video/view.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/pages/video/view.dart b/lib/pages/video/view.dart index a4c58fb33..c1617a2c0 100644 --- a/lib/pages/video/view.dart +++ b/lib/pages/video/view.dart @@ -498,7 +498,7 @@ class _VideoDetailPageVState extends State child: Scaffold( resizeToAvoidBottomInset: false, key: videoDetailController.scaffoldKey, - appBar: removeSafeArea + appBar: (removeSafeArea || isFullScreen) ? null : PreferredSize( preferredSize: const Size.fromHeight(0), @@ -1122,7 +1122,7 @@ class _VideoDetailPageVState extends State Scaffold( resizeToAvoidBottomInset: false, key: videoDetailController.scaffoldKey, - appBar: removeSafeArea + appBar: (removeSafeArea || isFullScreen) ? null : AppBar( backgroundColor: Colors.black, @@ -1131,7 +1131,7 @@ class _VideoDetailPageVState extends State body: SafeArea( left: !removeSafeArea && !isFullScreen, right: !removeSafeArea && !isFullScreen, - top: !removeSafeArea, + top: !removeSafeArea && !isFullScreen, bottom: false, child: childWhenDisabledLandscapeInner, ), @@ -1142,7 +1142,7 @@ class _VideoDetailPageVState extends State Widget get childWhenDisabledAlmostSquare => Scaffold( resizeToAvoidBottomInset: false, key: videoDetailController.scaffoldKey, - appBar: removeSafeArea + appBar: (removeSafeArea || isFullScreen) ? null : AppBar( backgroundColor: Colors.black, @@ -1151,7 +1151,7 @@ class _VideoDetailPageVState extends State body: SafeArea( left: !removeSafeArea && !isFullScreen, right: !removeSafeArea && !isFullScreen, - top: !removeSafeArea, + top: !removeSafeArea && !isFullScreen, bottom: false, child: childWhenDisabledAlmostSquareInner, ),