mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 16:18:22 +08:00
mod: btn to view all fav pgc
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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('删除'),
|
||||
),
|
||||
|
||||
@@ -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']}',
|
||||
|
||||
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user