mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-15 13:50:14 +08:00
opt find pgc episode
tweak Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -305,10 +305,13 @@ class _UgcIntroPanelState extends TripleState<UgcIntroPanel>
|
||||
!videoDetailCtr
|
||||
.plPlayerController
|
||||
.horizontalSeasonPanel))
|
||||
SeasonPanel(
|
||||
heroTag: widget.heroTag,
|
||||
showEpisodes: widget.showEpisodes,
|
||||
ugcIntroController: introController,
|
||||
Obx(
|
||||
() => SeasonPanel(
|
||||
key: ValueKey(introController.videoDetail.value),
|
||||
heroTag: widget.heroTag,
|
||||
showEpisodes: widget.showEpisodes,
|
||||
ugcIntroController: introController,
|
||||
),
|
||||
),
|
||||
if (!isLoading &&
|
||||
videoDetail.pages != null &&
|
||||
@@ -316,14 +319,16 @@ class _UgcIntroPanelState extends TripleState<UgcIntroPanel>
|
||||
(isPortrait ||
|
||||
!videoDetailCtr
|
||||
.plPlayerController
|
||||
.horizontalSeasonPanel)) ...[
|
||||
PagesPanel(
|
||||
heroTag: widget.heroTag,
|
||||
ugcIntroController: introController,
|
||||
bvid: introController.bvid,
|
||||
showEpisodes: widget.showEpisodes,
|
||||
.horizontalSeasonPanel))
|
||||
Obx(
|
||||
() => PagesPanel(
|
||||
key: ValueKey(introController.videoDetail.value),
|
||||
heroTag: widget.heroTag,
|
||||
ugcIntroController: introController,
|
||||
bvid: introController.bvid,
|
||||
showEpisodes: widget.showEpisodes,
|
||||
),
|
||||
),
|
||||
],
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -8,6 +8,7 @@ import 'package:PiliPlus/utils/id_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
// TODO refa
|
||||
class PagesPanel extends StatefulWidget {
|
||||
const PagesPanel({
|
||||
super.key,
|
||||
@@ -156,7 +157,9 @@ class _PagesPanelState extends State<PagesPanel> {
|
||||
if (widget.showEpisodes == null) {
|
||||
Get.back();
|
||||
}
|
||||
widget.ugcIntroController.onChangeEpisode(item);
|
||||
widget.ugcIntroController.onChangeEpisode(
|
||||
item..bvid ??= widget.bvid,
|
||||
);
|
||||
if (widget.list != null &&
|
||||
widget
|
||||
.ugcIntroController
|
||||
|
||||
@@ -8,6 +8,7 @@ import 'package:PiliPlus/pages/video/introduction/ugc/controller.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
// TODO refa
|
||||
class SeasonPanel extends StatefulWidget {
|
||||
const SeasonPanel({
|
||||
super.key,
|
||||
|
||||
Reference in New Issue
Block a user