Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-19 13:43:36 +08:00
parent 6f48a97b4b
commit 9b8d4a62fa
3 changed files with 103 additions and 89 deletions

View File

@@ -155,11 +155,13 @@ class _CreateFavPageState extends State<CreateFavPage> {
bucket: 'medialist',
dir: 'cover',
).then((res) {
if (res['status']) {
_cover = res['data']['location'];
(context as Element).markNeedsBuild();
} else {
SmartDialog.showToast(res['msg']);
if (context.mounted) {
if (res['status']) {
_cover = res['data']['location'];
(context as Element).markNeedsBuild();
} else {
SmartDialog.showToast(res['msg']);
}
}
});
}