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(
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<VideoDetailPageV>
Scaffold(
resizeToAvoidBottomInset: false,
key: videoDetailController.scaffoldKey,
appBar: removeSafeArea
appBar: (removeSafeArea || isFullScreen)
? null
: AppBar(
backgroundColor: Colors.black,
@@ -1131,7 +1131,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
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<VideoDetailPageV>
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<VideoDetailPageV>
body: SafeArea(
left: !removeSafeArea && !isFullScreen,
right: !removeSafeArea && !isFullScreen,
top: !removeSafeArea,
top: !removeSafeArea && !isFullScreen,
bottom: false,
child: childWhenDisabledAlmostSquareInner,
),