fix: resolve fullscreen UI offset issue on some Android tablets (#873)

This commit is contained in:
Fengning Zhu
2025-07-13 03:47:38 +00:00
committed by GitHub
parent 44ba554e0e
commit 10ed5f2ea4

View File

@@ -498,7 +498,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
child: Scaffold( child: Scaffold(
resizeToAvoidBottomInset: false, resizeToAvoidBottomInset: false,
key: videoDetailController.scaffoldKey, key: videoDetailController.scaffoldKey,
appBar: removeSafeArea appBar: (removeSafeArea || isFullScreen)
? null ? null
: PreferredSize( : PreferredSize(
preferredSize: const Size.fromHeight(0), preferredSize: const Size.fromHeight(0),
@@ -1122,7 +1122,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
Scaffold( Scaffold(
resizeToAvoidBottomInset: false, resizeToAvoidBottomInset: false,
key: videoDetailController.scaffoldKey, key: videoDetailController.scaffoldKey,
appBar: removeSafeArea appBar: (removeSafeArea || isFullScreen)
? null ? null
: AppBar( : AppBar(
backgroundColor: Colors.black, backgroundColor: Colors.black,
@@ -1131,7 +1131,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
body: SafeArea( body: SafeArea(
left: !removeSafeArea && !isFullScreen, left: !removeSafeArea && !isFullScreen,
right: !removeSafeArea && !isFullScreen, right: !removeSafeArea && !isFullScreen,
top: !removeSafeArea, top: !removeSafeArea && !isFullScreen,
bottom: false, bottom: false,
child: childWhenDisabledLandscapeInner, child: childWhenDisabledLandscapeInner,
), ),
@@ -1142,7 +1142,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
Widget get childWhenDisabledAlmostSquare => Scaffold( Widget get childWhenDisabledAlmostSquare => Scaffold(
resizeToAvoidBottomInset: false, resizeToAvoidBottomInset: false,
key: videoDetailController.scaffoldKey, key: videoDetailController.scaffoldKey,
appBar: removeSafeArea appBar: (removeSafeArea || isFullScreen)
? null ? null
: AppBar( : AppBar(
backgroundColor: Colors.black, backgroundColor: Colors.black,
@@ -1151,7 +1151,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
body: SafeArea( body: SafeArea(
left: !removeSafeArea && !isFullScreen, left: !removeSafeArea && !isFullScreen,
right: !removeSafeArea && !isFullScreen, right: !removeSafeArea && !isFullScreen,
top: !removeSafeArea, top: !removeSafeArea && !isFullScreen,
bottom: false, bottom: false,
child: childWhenDisabledAlmostSquareInner, child: childWhenDisabledAlmostSquareInner,
), ),