Org publishers

This commit is contained in:
2025-05-12 22:15:51 +08:00
parent 8efd8cd58e
commit ee8d502fc6
7 changed files with 106 additions and 41 deletions

View File

@ -165,6 +165,7 @@ class EditRealmScreen extends HookConsumerWidget {
.pickImage(source: ImageSource.gallery);
if (result == null) return;
if (!context.mounted) return;
hideLoadingModal(context);
result = await cropImage(
context,
image: result,
@ -180,7 +181,7 @@ class EditRealmScreen extends HookConsumerWidget {
return;
}
if (!context.mounted) return;
showLoadingModal(context);
submitting.value = true;
try {
final baseUrl = ref.watch(serverUrlProvider);