Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-21 22:38:47 +08:00
parent a1555826c3
commit 17568c8c27
43 changed files with 818 additions and 932 deletions

View File

@@ -67,17 +67,14 @@ class _FavArticlePageState extends State<FavArticlePage>
if (index == response.length - 1) {
_favArticleController.onLoadMore();
}
final item = response[index];
return FavArticleItem(
item: response[index],
item: item,
onDelete: () => showConfirmDialog(
context: context,
title: '确定取消收藏?',
onConfirm: () {
_favArticleController.onRemove(
index,
response[index].opusId,
);
},
onConfirm: () =>
_favArticleController.onRemove(index, item.opusId),
),
);
},

View File

@@ -151,10 +151,11 @@ class _FavNoteChildPageState extends State<FavNoteChildPage>
if (index == response.length - 1) {
_favNoteController.onLoadMore();
}
final item = response[index];
return FavNoteItem(
item: response[index],
item: item,
ctr: _favNoteController,
onSelect: () => _favNoteController.onSelect(index),
onSelect: () => _favNoteController.onSelect(item),
);
},
childCount: response!.length,

View File

@@ -17,8 +17,8 @@ class FavNoteController
}
@override
void onSelect(int index, [bool disableSelect = true]) {
super.onSelect(index, false);
void onSelect(FavNoteItemModel item, [bool disableSelect = true]) {
super.onSelect(item, false);
}
@override

View File

@@ -178,7 +178,7 @@ class _FavPgcChildPageState extends State<FavPgcChildPage>
return FavPgcItem(
item: item,
ctr: _favPgcController,
onSelect: () => _favPgcController.onSelect(index),
onSelect: () => _favPgcController.onSelect(item),
onUpdateStatus: () => showPgcFollowDialog(
context: context,
type: widget.type == 0 ? '追番' : '追剧',

View File

@@ -24,8 +24,8 @@ class FavPgcController
}
@override
void onSelect(int index, [bool disableSelect = true]) {
super.onSelect(index, false);
void onSelect(FavPgcItemModel item, [bool disableSelect = true]) {
super.onSelect(item, false);
}
@override