fix: 视频全屏时的安全区域
This commit is contained in:
@ -817,6 +817,10 @@ class PlPlayerController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
toggleFullScreen(true);
|
toggleFullScreen(true);
|
||||||
|
bool isValid =
|
||||||
|
direction.value == 'vertical' || mode == FullScreenMode.vertical
|
||||||
|
? true
|
||||||
|
: false;
|
||||||
var result = await showDialog(
|
var result = await showDialog(
|
||||||
context: Get.context!,
|
context: Get.context!,
|
||||||
useSafeArea: false,
|
useSafeArea: false,
|
||||||
@ -824,12 +828,10 @@ class PlPlayerController {
|
|||||||
backgroundColor: Colors.black,
|
backgroundColor: Colors.black,
|
||||||
child: SafeArea(
|
child: SafeArea(
|
||||||
// 忽略手机安全区域
|
// 忽略手机安全区域
|
||||||
|
top: isValid,
|
||||||
left: false,
|
left: false,
|
||||||
right: false,
|
right: false,
|
||||||
bottom:
|
bottom: isValid,
|
||||||
direction.value == 'vertical' || mode == FullScreenMode.vertical
|
|
||||||
? true
|
|
||||||
: false,
|
|
||||||
child: PLVideoPlayer(
|
child: PLVideoPlayer(
|
||||||
controller: this,
|
controller: this,
|
||||||
headerControl: headerControl,
|
headerControl: headerControl,
|
||||||
|
|||||||
@ -547,7 +547,10 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
),
|
),
|
||||||
|
|
||||||
// 头部、底部控制条
|
// 头部、底部控制条
|
||||||
Obx(
|
SafeArea(
|
||||||
|
top: false,
|
||||||
|
bottom: false,
|
||||||
|
child: Obx(
|
||||||
() => Column(
|
() => Column(
|
||||||
children: [
|
children: [
|
||||||
if (widget.headerControl != null || _.headerControl != null)
|
if (widget.headerControl != null || _.headerControl != null)
|
||||||
@ -577,6 +580,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
|
||||||
/// 进度条 live模式下禁用
|
/// 进度条 live模式下禁用
|
||||||
Obx(
|
Obx(
|
||||||
|
|||||||
Reference in New Issue
Block a user