opt: nextPlay logic & style

This commit is contained in:
guozhigq
2024-12-02 00:04:04 +08:00
parent 38b7a4bf91
commit 97d20b1145
3 changed files with 8 additions and 4 deletions

View File

@ -122,6 +122,7 @@ class LaterController extends GetxController {
'heroTag': heroTag,
'sourceType': 'watchLater',
'count': laterList.length,
'mediaId': userInfo!.mid,
},
);
}

View File

@ -523,7 +523,7 @@ class VideoIntroController extends GetxController {
Get.find<VideoDetailController>(tag: heroTag);
/// 优先稍后再看、收藏夹
if (videoDetailCtr.isWatchLaterVisible.value) {
if (videoDetailCtr.sourceType.value != 'normal') {
episodes.addAll(videoDetailCtr.mediaList);
} else if (videoDetail.value.ugcSeason != null) {
final UgcSeason ugcSeason = videoDetail.value.ugcSeason!;

View File

@ -85,9 +85,12 @@ class _MediaListPanelState extends State<MediaListPanel> {
AppBar(
toolbarHeight: 45,
automaticallyImplyLeading: false,
title: Text(
widget.panelTitle ?? '稍后再看',
style: Theme.of(context).textTheme.titleSmall,
title: Padding(
padding: const EdgeInsets.only(left: 12),
child: Text(
widget.panelTitle ?? '稍后再看',
style: Theme.of(context).textTheme.titleSmall,
),
),
actions: [
IconButton(