diff --git a/lib/components/loading.dart b/lib/components/loading.dart index ed156cc..6aeb93d 100644 --- a/lib/components/loading.dart +++ b/lib/components/loading.dart @@ -44,6 +44,8 @@ class _LoadingDialog extends State { if (widget.requestCallBack != null) { widget.requestCallBack.then((_) { Navigator.pop(context); + }).catchError(() { + Navigator.pop(context); }); } }