mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-30 23:58:13 +08:00
fix change episode
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -249,9 +249,8 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
final isSeason = videoDetail.ugcSeason != null;
|
final isSeason = videoDetail.ugcSeason != null;
|
||||||
final isPart = videoDetail.pages != null && videoDetail.pages!.length > 1;
|
final isPart = videoDetail.pages != null && videoDetail.pages!.length > 1;
|
||||||
final isPgc = !widget.videoDetailController!.isUgc;
|
final isPgc = !widget.videoDetailController!.isUgc;
|
||||||
final anySeason = isSeason || isPart || isPgc;
|
final isPlayAll = widget.videoDetailController?.isPlayAll == true;
|
||||||
final isPlayAll =
|
final anySeason = isSeason || isPart || isPgc || isPlayAll;
|
||||||
anySeason || widget.videoDetailController?.isPlayAll == true;
|
|
||||||
|
|
||||||
final double widgetWidth = isFullScreen && context.isLandscape ? 42 : 35;
|
final double widgetWidth = isFullScreen && context.isLandscape ? 42 : 35;
|
||||||
|
|
||||||
@@ -639,7 +638,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
List<BottomControlType> userSpecifyItemLeft = [
|
List<BottomControlType> userSpecifyItemLeft = [
|
||||||
BottomControlType.playOrPause,
|
BottomControlType.playOrPause,
|
||||||
BottomControlType.time,
|
BottomControlType.time,
|
||||||
if (isPlayAll) ...[
|
if (anySeason) ...[
|
||||||
BottomControlType.pre,
|
BottomControlType.pre,
|
||||||
BottomControlType.next,
|
BottomControlType.next,
|
||||||
],
|
],
|
||||||
@@ -649,7 +648,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
BottomControlType.dmChart,
|
BottomControlType.dmChart,
|
||||||
BottomControlType.superResolution,
|
BottomControlType.superResolution,
|
||||||
BottomControlType.viewPoints,
|
BottomControlType.viewPoints,
|
||||||
if (isPlayAll) BottomControlType.episode,
|
if (anySeason) BottomControlType.episode,
|
||||||
if (isFullScreen) BottomControlType.fit,
|
if (isFullScreen) BottomControlType.fit,
|
||||||
BottomControlType.subtitle,
|
BottomControlType.subtitle,
|
||||||
BottomControlType.speed,
|
BottomControlType.speed,
|
||||||
|
|||||||
Reference in New Issue
Block a user