mod: btn to view all fav pgc

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-03-29 21:03:19 +08:00
parent 84a342a0e0
commit 99d0b1c468
4 changed files with 53 additions and 8 deletions

View File

@@ -102,11 +102,13 @@ class _FavNoteChildPageState extends State<FavNoteChildPage>
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
),
onPressed: () {
showConfirmDialog(
context: context,
title: '确定删除已选中的笔记吗?',
onConfirm: _favNoteController.onRemove,
);
if (_favNoteController.checkedCount.value != 0) {
showConfirmDialog(
context: context,
title: '确定删除已选中的笔记吗?',
onConfirm: _favNoteController.onRemove,
);
}
},
child: const Text('删除'),
),

View File

@@ -114,8 +114,11 @@ class _FavPgcChildPageState extends State<FavPgcChildPage>
padding: const EdgeInsets.only(left: 25),
child: GestureDetector(
onTap: () {
_favPgcController
.onUpdate(item['followStatus']);
if (_favPgcController.checkedCount.value !=
0) {
_favPgcController
.onUpdate(item['followStatus']);
}
},
child: Text(
'标记为${item['title']}',

View File

@@ -24,6 +24,7 @@ class _FavPageState extends State<FavPage> with SingleTickerProviderStateMixin {
late final TabController _tabController = TabController(
length: _FavType.values.length,
vsync: this,
initialIndex: Get.arguments is int ? Get.arguments : 0,
);
final FavController _favController = Get.put(FavController());