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('删除'),
),