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,