Browse Source

更新loading点击关闭

tags/0.0.1
Weller 4 years ago
parent
commit
be4c011158
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      lib/dialog/loading/loading_dialog.dart

+ 3
- 3
lib/dialog/loading/loading_dialog.dart View File

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


Loading…
Cancel
Save