fix: 自动全屏时headerControl丢失 issues #79

This commit is contained in:
guozhigq
2023-09-09 23:52:13 +08:00
parent 0e39453558
commit c16106d676
3 changed files with 27 additions and 16 deletions

View File

@ -561,14 +561,14 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
Obx(
() => Column(
children: [
if (widget.headerControl != null)
if (widget.headerControl != null || _.headerControl != null)
ClipRect(
clipBehavior: Clip.hardEdge,
child: AppBarAni(
controller: animationController,
visible: !_.controlsLock.value && _.showControls.value,
position: 'top',
child: widget.headerControl!,
child: widget.headerControl ?? _.headerControl!,
),
),
const Spacer(),