mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 16:18:22 +08:00
fix: show thin progress bar during drag when progressType is alwaysHide
This commit is contained in:
@@ -1719,8 +1719,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
),
|
),
|
||||||
|
|
||||||
/// 进度条 live模式下禁用
|
/// 进度条 live模式下禁用
|
||||||
if (!isLive &&
|
if (!isLive)
|
||||||
plPlayerController.progressType != BtmProgressBehavior.alwaysHide)
|
|
||||||
Positioned(
|
Positioned(
|
||||||
bottom: -2.2,
|
bottom: -2.2,
|
||||||
left: 0,
|
left: 0,
|
||||||
@@ -1732,6 +1731,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
final offstage = isDragging && !showControls
|
final offstage = isDragging && !showControls
|
||||||
? false
|
? false
|
||||||
: switch (plPlayerController.progressType) {
|
: switch (plPlayerController.progressType) {
|
||||||
|
BtmProgressBehavior.alwaysHide => true,
|
||||||
BtmProgressBehavior.onlyShowFullScreen =>
|
BtmProgressBehavior.onlyShowFullScreen =>
|
||||||
showControls || !isFullScreen,
|
showControls || !isFullScreen,
|
||||||
BtmProgressBehavior.onlyHideFullScreen =>
|
BtmProgressBehavior.onlyHideFullScreen =>
|
||||||
|
|||||||
Reference in New Issue
Block a user