mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-20 08:08:44 +00:00
fix: resolve fullscreen UI offset issue on some Android tablets (#873)
This commit is contained in:
@@ -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,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user