♻️ Refactor riverpod pagination loading
This commit is contained in:
@ -163,7 +163,10 @@ class EditRealmScreen extends HookConsumerWidget {
|
||||
var result = await ref
|
||||
.read(imagePickerProvider)
|
||||
.pickImage(source: ImageSource.gallery);
|
||||
if (result == null) return;
|
||||
if (result == null) {
|
||||
if (context.mounted) hideLoadingModal(context);
|
||||
return;
|
||||
}
|
||||
if (!context.mounted) return;
|
||||
hideLoadingModal(context);
|
||||
result = await cropImage(
|
||||
|
Reference in New Issue
Block a user