Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-21 11:48:42 +08:00
parent 1efd62803a
commit ac60ac417b
130 changed files with 1631 additions and 2132 deletions

View File

@@ -66,18 +66,16 @@ class _FavArticlePageState extends State<FavArticlePage>
}
return FavArticleItem(
item: response[index],
onDelete: () {
showConfirmDialog(
context: context,
title: '确定取消收藏?',
onConfirm: () {
_favArticleController.onRemove(
index,
response[index]['opus_id'],
);
},
);
},
onDelete: () => showConfirmDialog(
context: context,
title: '确定取消收藏?',
onConfirm: () {
_favArticleController.onRemove(
index,
response[index]['opus_id'],
);
},
),
);
},
childCount: response!.length,

View File

@@ -24,15 +24,13 @@ class FavArticleItem extends StatelessWidget {
clipBehavior: Clip.none,
children: [
InkWell(
onTap: () {
Get.toNamed(
'/articlePage',
parameters: {
'id': item['opus_id'],
'type': 'opus',
},
);
},
onTap: () => Get.toNamed(
'/articlePage',
parameters: {
'id': item['opus_id'],
'type': 'opus',
},
),
child: Padding(
padding: const EdgeInsets.symmetric(
horizontal: StyleString.safeSpace,