Merge pull request #325 from orz12/fix_portrait_fullscreen_bottom_cherry_pick

fix: 竖屏非全屏状态小白条适配
This commit is contained in:
guozhigq
2023-12-21 21:24:54 +08:00
committed by GitHub
3 changed files with 15 additions and 32 deletions

View File

@ -244,7 +244,8 @@ class _VideoDetailPageState extends State<VideoDetailPage>
}
Widget childWhenDisabled = SafeArea(
top: MediaQuery.of(context).orientation == Orientation.portrait,
bottom: MediaQuery.of(context).orientation == Orientation.portrait,
bottom: MediaQuery.of(context).orientation == Orientation.portrait
&& plPlayerController!.isFullScreen.value,
left: !plPlayerController!.isFullScreen.value,
right: !plPlayerController!.isFullScreen.value,
child: Stack(
@ -432,7 +433,8 @@ class _VideoDetailPageState extends State<VideoDetailPage>
// },
/// 不收回
pinnedHeaderSliverHeightBuilder: () {
return pinnedHeaderHeight;
return plPlayerController!.isFullScreen.value ?
MediaQuery.of(context).size.height: pinnedHeaderHeight;
},
onlyOneScrollInBody: true,
body: Container(