From 25d27e42edf4bd2b6ccf9ce87b4e19675ee6bb22 Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Sun, 16 Feb 2025 09:20:42 +0800 Subject: [PATCH] fix: #263 Signed-off-by: bggRGjQaUbCoE --- lib/plugin/pl_player/view.dart | 42 +++++++++++++++++----------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/lib/plugin/pl_player/view.dart b/lib/plugin/pl_player/view.dart index 1bb962dac..7fb4b9e97 100644 --- a/lib/plugin/pl_player/view.dart +++ b/lib/plugin/pl_player/view.dart @@ -1110,12 +1110,12 @@ class _PLVideoPlayerState extends State // 头部、底部控制条 Obx( () => Positioned.fill( - child: Column( - children: [ - if (widget.headerControl != null || - plPlayerController.headerControl != null) - ClipRect( - child: AppBarAni( + child: ClipRect( + child: Column( + children: [ + if (widget.headerControl != null || + plPlayerController.headerControl != null) + AppBarAni( controller: animationController, visible: !plPlayerController.controlsLock.value && plPlayerController.showControls.value, @@ -1123,21 +1123,21 @@ class _PLVideoPlayerState extends State child: widget.headerControl ?? plPlayerController.headerControl!, ), - ), - const Spacer(), - if (plPlayerController.showControls.value) - AppBarAni( - controller: animationController, - visible: !plPlayerController.controlsLock.value && - plPlayerController.showControls.value, - position: 'bottom', - child: widget.bottomControl ?? - BottomControl( - controller: plPlayerController, - buildBottomControl: buildBottomControl, - ), - ), - ], + const Spacer(), + if (plPlayerController.showControls.value) + AppBarAni( + controller: animationController, + visible: !plPlayerController.controlsLock.value && + plPlayerController.showControls.value, + position: 'bottom', + child: widget.bottomControl ?? + BottomControl( + controller: plPlayerController, + buildBottomControl: buildBottomControl, + ), + ), + ], + ), ), ), ),