opt: 视频操作栏安全区域优化

This commit is contained in:
guozhigq
2024-05-23 00:32:59 +08:00
parent 2619635e2b
commit 2dfd2d4dc1
2 changed files with 25 additions and 25 deletions

View File

@ -768,37 +768,33 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
),
// 头部、底部控制条
SafeArea(
top: false,
bottom: false,
child: Obx(
() => Column(
children: [
if (widget.headerControl != null || _.headerControl != null)
ClipRect(
child: AppBarAni(
controller: animationController,
visible: !_.controlsLock.value && _.showControls.value,
position: 'top',
child: widget.headerControl ?? _.headerControl!,
),
),
const Spacer(),
Obx(
() => Column(
children: [
if (widget.headerControl != null || _.headerControl != null)
ClipRect(
child: AppBarAni(
controller: animationController,
visible: !_.controlsLock.value && _.showControls.value,
position: 'bottom',
child: widget.bottomControl ??
BottomControl(
controller: widget.controller,
triggerFullScreen: _.triggerFullScreen,
buildBottomControl: buildBottomControl(),
),
position: 'top',
child: widget.headerControl ?? _.headerControl!,
),
),
],
),
const Spacer(),
ClipRect(
child: AppBarAni(
controller: animationController,
visible: !_.controlsLock.value && _.showControls.value,
position: 'bottom',
child: widget.bottomControl ??
BottomControl(
controller: widget.controller,
triggerFullScreen: _.triggerFullScreen,
buildBottomControl: buildBottomControl(),
),
),
),
],
),
),