mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-24 10:08:41 +00:00
@@ -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),
|
||||
),
|
||||
);
|
||||
},
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 ? '追番' : '追剧',
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user