mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: showEpisodes
This commit is contained in:
@@ -526,6 +526,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
playerController: plPlayerController!,
|
||||
),
|
||||
),
|
||||
showEpisodes: showEpisodes,
|
||||
),
|
||||
);
|
||||
} else {
|
||||
@@ -1365,6 +1366,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
playerController: plPlayerController!,
|
||||
),
|
||||
),
|
||||
showEpisodes: showEpisodes,
|
||||
),
|
||||
);
|
||||
Widget autoChoose(Widget childWhenDisabled) {
|
||||
@@ -1480,7 +1482,9 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
currentCid: cid,
|
||||
changeFucCall: videoIntroController.changeSeasonOrbangu,
|
||||
context: context,
|
||||
scaffoldState: scaffoldKey.currentState,
|
||||
scaffoldState: isFullScreen.value
|
||||
? videoDetailController.scaffoldKey.currentState
|
||||
: scaffoldKey.currentState,
|
||||
).buildShowBottomSheet();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,6 +48,7 @@ class PLVideoPlayer extends StatefulWidget {
|
||||
this.bottomList,
|
||||
this.customWidget,
|
||||
this.customWidgets,
|
||||
this.showEpisodes,
|
||||
super.key,
|
||||
});
|
||||
|
||||
@@ -62,6 +63,7 @@ class PLVideoPlayer extends StatefulWidget {
|
||||
|
||||
final Widget? customWidget;
|
||||
final List<Widget>? customWidgets;
|
||||
final Function? showEpisodes;
|
||||
|
||||
@override
|
||||
State<PLVideoPlayer> createState() => _PLVideoPlayerState();
|
||||
@@ -363,14 +365,14 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
||||
.episodes!);
|
||||
changeFucCall = bangumiIntroController!.changeSeasonOrbangu;
|
||||
}
|
||||
ListSheet(
|
||||
episodes: episodes,
|
||||
bvid: bvid,
|
||||
aid: IdUtils.bv2av(bvid),
|
||||
currentCid: currentCid,
|
||||
changeFucCall: changeFucCall,
|
||||
context: context,
|
||||
).buildShowBottomSheet();
|
||||
if (widget.showEpisodes != null) {
|
||||
widget.showEpisodes!(
|
||||
episodes,
|
||||
bvid,
|
||||
IdUtils.bv2av(bvid),
|
||||
currentCid,
|
||||
);
|
||||
}
|
||||
},
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user