From be4c0111584b3db8df0712732ec68fc6268931cc Mon Sep 17 00:00:00 2001 From: Weller <1812208341@qq.com> Date: Tue, 27 Oct 2020 16:09:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0loading=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/dialog/loading/loading_dialog.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/dialog/loading/loading_dialog.dart b/lib/dialog/loading/loading_dialog.dart index e674465..b866dc8 100644 --- a/lib/dialog/loading/loading_dialog.dart +++ b/lib/dialog/loading/loading_dialog.dart @@ -1,6 +1,8 @@ import 'package:flutter/material.dart'; import 'package:loading_indicator/loading_indicator.dart'; +import 'loading.dart'; + class LoadingDialog extends StatelessWidget { final String message; @@ -10,9 +12,7 @@ class LoadingDialog extends StatelessWidget { Widget build(BuildContext context) { return GestureDetector( onTap: () { - if (Navigator.canPop(context)) { - Navigator.pop(context); - } + Loading.dismiss(); }, child: Scaffold( backgroundColor: Colors.transparent,