feat: 选集查看

This commit is contained in:
guozhigq
2023-08-10 22:14:13 +08:00
parent 995d633943
commit 779d3c7eb2
4 changed files with 239 additions and 13 deletions

View File

@ -19,6 +19,7 @@ import 'widgets/action_item.dart';
import 'widgets/action_row_item.dart';
import 'widgets/fav_panel.dart';
import 'widgets/intro_detail.dart';
import 'widgets/page.dart';
import 'widgets/season.dart';
class VideoIntroPanel extends StatefulWidget {
@ -274,6 +275,18 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
.changeSeasonOrbangu(bvid, cid, aid),
)
],
if (!loadingStatus &&
widget.videoDetail!.pages != null &&
widget.videoDetail!.pages!.length > 1) ...[
Obx(() => PagesPanel(
pages: widget.videoDetail!.pages!,
cid: videoIntroController.lastPlayCid.value,
sheetHeight: sheetHeight,
changeFuc: (cid) =>
videoIntroController.changeSeasonOrbangu(
videoIntroController.bvid, cid, null),
))
],
GestureDetector(
onTap: onPushMember,
child: Container(