|
@@ -1,6 +1,8 @@ |
|
|
import 'package:flutter/material.dart'; |
|
|
import 'package:flutter/material.dart'; |
|
|
import 'package:loading_indicator/loading_indicator.dart'; |
|
|
import 'package:loading_indicator/loading_indicator.dart'; |
|
|
|
|
|
|
|
|
|
|
|
import 'loading.dart'; |
|
|
|
|
|
|
|
|
class LoadingDialog extends StatelessWidget { |
|
|
class LoadingDialog extends StatelessWidget { |
|
|
final String message; |
|
|
final String message; |
|
|
|
|
|
|
|
@@ -10,9 +12,7 @@ class LoadingDialog extends StatelessWidget { |
|
|
Widget build(BuildContext context) { |
|
|
Widget build(BuildContext context) { |
|
|
return GestureDetector( |
|
|
return GestureDetector( |
|
|
onTap: () { |
|
|
onTap: () { |
|
|
if (Navigator.canPop(context)) { |
|
|
|
|
|
Navigator.pop(context); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
Loading.dismiss(); |
|
|
}, |
|
|
}, |
|
|
child: Scaffold( |
|
|
child: Scaffold( |
|
|
backgroundColor: Colors.transparent, |
|
|
backgroundColor: Colors.transparent, |
|
|