fix: 视频全屏时的安全区域

This commit is contained in:
guozhigq
2023-09-18 07:39:56 +08:00
parent f543be562a
commit 8f97431665
2 changed files with 31 additions and 25 deletions

View File

@ -817,6 +817,10 @@ class PlPlayerController {
}
toggleFullScreen(true);
bool isValid =
direction.value == 'vertical' || mode == FullScreenMode.vertical
? true
: false;
var result = await showDialog(
context: Get.context!,
useSafeArea: false,
@ -824,12 +828,10 @@ class PlPlayerController {
backgroundColor: Colors.black,
child: SafeArea(
// 忽略手机安全区域
top: isValid,
left: false,
right: false,
bottom:
direction.value == 'vertical' || mode == FullScreenMode.vertical
? true
: false,
bottom: isValid,
child: PLVideoPlayer(
controller: this,
headerControl: headerControl,