From dca9e032c86644da0d5b15d34f50ea2c4ac00713 Mon Sep 17 00:00:00 2001 From: hackycy Date: Wed, 8 Jul 2020 11:12:22 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9Afix=20LoadingDialog=20appear=20erro?= =?UTF-8?q?r=20not=20dismiss?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/components/loading.dart | 2 ++ 1 file changed, 2 insertions(+) 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); }); } }