feat: 视频切换分p

This commit is contained in:
guozhigq
2023-08-05 23:24:48 +08:00
parent 1676f6f473
commit c83f70c08a
3 changed files with 280 additions and 107 deletions

View File

@ -63,7 +63,11 @@ class _VideoIntroPanelState extends State<VideoIntroPanel>
if (snapshot.data['status']) {
// 请求成功
// return _buildView(context, false, videoDetail);
return VideoInfo(loadingStatus: false, videoDetail: videoDetail);
return Obx(
() => VideoInfo(
loadingStatus: false,
videoDetail: videoIntroController.videoDetail.value),
);
} else {
// 请求错误
return HttpError(
@ -235,8 +239,13 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
// 合集
if (!widget.loadingStatus &&
widget.videoDetail!.ugcSeason != null) ...[
seasonPanel(widget.videoDetail!.ugcSeason!,
widget.videoDetail!.pages!.first.cid, sheetHeight)
SeasonPanel(
ugcSeason: widget.videoDetail!.ugcSeason!,
cid: widget.videoDetail!.pages!.first.cid,
sheetHeight: sheetHeight,
changeFuc: (bvid, cid, aid) => videoIntroController
.changeSeasonOrbangu(bvid, cid, aid),
)
],
GestureDetector(
onTap: () {