fix: show thin progress bar during drag when progressType is alwaysHide

This commit is contained in:
систем
2026-04-11 14:45:54 +08:00
parent af276c42f8
commit 1a60c8e6df

View File

@@ -1719,8 +1719,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
),
/// 进度条 live模式下禁用
if (!isLive &&
plPlayerController.progressType != BtmProgressBehavior.alwaysHide)
if (!isLive)
Positioned(
bottom: -2.2,
left: 0,
@@ -1732,6 +1731,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
final offstage = isDragging && !showControls
? false
: switch (plPlayerController.progressType) {
BtmProgressBehavior.alwaysHide => true,
BtmProgressBehavior.onlyShowFullScreen =>
showControls || !isFullScreen,
BtmProgressBehavior.onlyHideFullScreen =>