feat: 收藏夹新建/编辑

This commit is contained in:
guozhigq
2024-09-11 00:03:14 +08:00
parent 10f464aab1
commit ba1704fa2a
9 changed files with 306 additions and 0 deletions

View File

@ -55,6 +55,22 @@ class _FavPageState extends State<FavPage> {
tooltip: 'Ta的订阅',
)
: const SizedBox.shrink()),
// 新建收藏夹
Obx(() => _favController.isOwner.value
? IconButton(
onPressed: () async {
await Get.toNamed('/favEdit');
_favController.hasMore.value = true;
_favController.currentPage = 1;
setState(() {
_futureBuilderFuture = _favController.queryFavFolder();
});
},
icon: const Icon(Icons.add_outlined),
tooltip: '新建收藏夹',
)
: const SizedBox.shrink()),
IconButton(
onPressed: () => Get.toNamed(
'/favSearch?searchType=1&mediaId=${_favController.favFolderData.value.list!.first.id}'),