opt: remove fav folder after deleted

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-11-21 15:48:27 +08:00
parent c0a482ab78
commit 37ddebca50
5 changed files with 80 additions and 16 deletions

View File

@@ -135,7 +135,13 @@ class _MemberFavoriteState extends State<MemberFavorite>
'mediaId': item1.id.toString(),
'heroTag': widget.heroTag ?? '',
},
);
)?.then((res) {
if (res == true) {
_controller.first.value.mediaListResponse?.list
?.remove(item1);
_controller.first.refresh();
}
});
} else if (item1.type == 21) {
PiliScheme.routePush(Uri.parse(item1.link ?? ''));
} else if (item1.type == 11) {