mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: horizontal part view
Closes #128 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -91,8 +91,8 @@ class VideoCardH extends StatelessWidget {
|
|||||||
seasonId: isSeason ? id : null,
|
seasonId: isSeason ? id : null,
|
||||||
epId: isSeason ? null : id,
|
epId: isSeason ? null : id,
|
||||||
);
|
);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
final int cid =
|
final int cid =
|
||||||
|
|||||||
@@ -39,8 +39,7 @@ class VideoCardV extends StatelessWidget {
|
|||||||
SmartDialog.showToast('暂不支持电影观看');
|
SmartDialog.showToast('暂不支持电影观看');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int epId = videoItem.param;
|
Utils.viewBangumi(epId: videoItem.param);
|
||||||
Utils.viewBangumi(epId: epId);
|
|
||||||
// SmartDialog.showLoading(msg: '资源获取中');
|
// SmartDialog.showLoading(msg: '资源获取中');
|
||||||
// var result = await SearchHttp.bangumiInfo(seasonId: null, epId: epId);
|
// var result = await SearchHttp.bangumiInfo(seasonId: null, epId: epId);
|
||||||
// SmartDialog.dismiss();
|
// SmartDialog.dismiss();
|
||||||
|
|||||||
@@ -1510,16 +1510,44 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
Widget get seasonPanel => Column(
|
Widget get seasonPanel => Column(
|
||||||
children: [
|
children: [
|
||||||
if ((videoIntroController.videoDetail.value.pages?.length ?? 0) > 1)
|
if ((videoIntroController.videoDetail.value.pages?.length ?? 0) > 1)
|
||||||
Padding(
|
if (videoIntroController.videoDetail.value.ugcSeason != null)
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 14),
|
Padding(
|
||||||
child: PagesPanel(
|
padding: const EdgeInsets.symmetric(horizontal: 14),
|
||||||
heroTag: heroTag,
|
child: PagesPanel(
|
||||||
videoIntroController: videoIntroController,
|
heroTag: heroTag,
|
||||||
bvid: videoIntroController.bvid,
|
videoIntroController: videoIntroController,
|
||||||
changeFuc: videoIntroController.changeSeasonOrbangu,
|
bvid: videoIntroController.bvid,
|
||||||
showEpisodes: showEpisodes,
|
changeFuc: videoIntroController.changeSeasonOrbangu,
|
||||||
|
showEpisodes: showEpisodes,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
else
|
||||||
|
Expanded(
|
||||||
|
child: Obx(
|
||||||
|
() => ListSheetContent(
|
||||||
|
episodes: videoIntroController.videoDetail.value.pages,
|
||||||
|
bvid: videoDetailController.bvid,
|
||||||
|
aid: IdUtils.bv2av(videoDetailController.bvid),
|
||||||
|
currentCid: videoDetailController.cid.value,
|
||||||
|
isReversed:
|
||||||
|
videoIntroController.videoDetail.value.isPageReversed,
|
||||||
|
changeFucCall: videoDetailController.videoType ==
|
||||||
|
SearchType.media_bangumi
|
||||||
|
? bangumiIntroController.changeSeasonOrbangu
|
||||||
|
: videoIntroController.changeSeasonOrbangu,
|
||||||
|
showTitle: false,
|
||||||
|
isSupportReverse: videoDetailController.videoType !=
|
||||||
|
SearchType.media_bangumi,
|
||||||
|
onReverse: () {
|
||||||
|
onReversePlay(
|
||||||
|
bvid: videoDetailController.bvid,
|
||||||
|
aid: IdUtils.bv2av(videoDetailController.bvid),
|
||||||
|
isSeason: false,
|
||||||
|
);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
if (videoIntroController.videoDetail.value.ugcSeason != null) ...[
|
if (videoIntroController.videoDetail.value.ugcSeason != null) ...[
|
||||||
if ((videoIntroController.videoDetail.value.pages?.length ?? 0) >
|
if ((videoIntroController.videoDetail.value.pages?.length ?? 0) >
|
||||||
1) ...[
|
1) ...[
|
||||||
|
|||||||
Reference in New Issue
Block a user