|
|
@@ -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, |
|
|
|