mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
Fix popup null context as it was using a dismissed (unmounted) context [skip ci]
This commit is contained in:
@@ -9,15 +9,12 @@ Future<T?> showPopUp<T>({
|
||||
bool useRootNavigator = true,
|
||||
RouteSettings? routeSettings
|
||||
}) async {
|
||||
if (context.mounted) {
|
||||
return showDialog<T>(
|
||||
context: context,
|
||||
builder: builder,
|
||||
barrierDismissible: barrierDismissible,
|
||||
barrierColor: barrierColor,
|
||||
useSafeArea: useSafeArea,
|
||||
useRootNavigator: useRootNavigator,
|
||||
routeSettings: routeSettings);
|
||||
}
|
||||
return null;
|
||||
return showDialog<T>(
|
||||
context: context,
|
||||
builder: builder,
|
||||
barrierDismissible: barrierDismissible,
|
||||
barrierColor: barrierColor,
|
||||
useSafeArea: useSafeArea,
|
||||
useRootNavigator: useRootNavigator,
|
||||
routeSettings: routeSettings);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user