opt change episode

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-05 19:56:22 +08:00
parent 170b2aa6d9
commit 80a4c8c24d
10 changed files with 79 additions and 81 deletions

View File

@@ -21,14 +21,14 @@ class VideoCardHLater extends StatelessWidget {
const VideoCardHLater({
super.key,
required this.ctr,
required this.index,
required this.videoItem,
this.onViewLater,
required this.onRemove,
required this.onViewLater,
});
final int index;
final BaseLaterController ctr;
final LaterItemModel videoItem;
final ValueChanged<int>? onViewLater;
final VoidCallback onRemove;
final ValueChanged<int> onViewLater;
@override
Widget build(BuildContext context) {
@@ -72,7 +72,7 @@ class VideoCardHLater extends StatelessWidget {
bvid: videoItem.bvid,
);
if (cid != null) {
onViewLater!(cid);
onViewLater(cid);
}
} catch (err) {
SmartDialog.showToast(err.toString());
@@ -192,7 +192,7 @@ class VideoCardHLater extends StatelessWidget {
iconButton(
tooltip: '移除',
context: context,
onPressed: onRemove,
onPressed: () => ctr..toViewDel(context, index, videoItem.aid),
icon: Icons.clear,
iconColor: theme.colorScheme.outline,
bgColor: Colors.transparent,