forked from lxm_tools/flutter-picgo
fix:fix LoadingDialog appear error not dismiss
This commit is contained in:
@@ -44,6 +44,8 @@ class _LoadingDialog extends State<NetLoadingDialog> {
|
||||
if (widget.requestCallBack != null) {
|
||||
widget.requestCallBack.then((_) {
|
||||
Navigator.pop(context);
|
||||
}).catchError(() {
|
||||
Navigator.pop(context);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user