mod: 合集按钮展示逻辑

This commit is contained in:
guozhigq
2024-04-06 21:57:57 +08:00
parent c2a4d80c79
commit 46c975bbbb

View File

@ -178,9 +178,15 @@ class _VideoDetailPageState extends State<VideoDetailPage>
if (isFullScreen) {
vdCtr.hiddenReplyReplyPanel();
videoIntroController.hiddenEpisodeBottomSheet();
vdCtr.bottomList.insert(3, BottomControlType.episode);
if (videoIntroController.videoDetail.value.ugcSeason != null ||
(videoIntroController.videoDetail.value.pages != null &&
videoIntroController.videoDetail.value.pages!.length > 1)) {
vdCtr.bottomList.insert(3, BottomControlType.episode);
}
} else {
vdCtr.bottomList.removeAt(3);
if (vdCtr.bottomList.contains(BottomControlType.episode)) {
vdCtr.bottomList.removeAt(3);
}
}
});
}