You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
605 B
Dart
28 lines
605 B
Dart
import 'package:flutter/material.dart';
|
|
import 'commonFun.dart';
|
|
|
|
//等待对话框
|
|
class CustomDialogWait extends Dialog {
|
|
String title;
|
|
bool ret = false;
|
|
|
|
CustomDialogWait({this.title = ""});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
Size mediaSize = MediaQuery.of(context).size;
|
|
return WillPopScope(
|
|
child: Material(
|
|
type: MaterialType.transparency,
|
|
child: Container(
|
|
child: getMoreWidget(text: title),
|
|
),
|
|
),
|
|
onWillPop: () {
|
|
// 屏蔽点击返回键的操作
|
|
Navigator.pop(context, ret);
|
|
},
|
|
);
|
|
}
|
|
}
|