|
|
|
import 'dart:async';
|
|
|
|
import 'dart:convert';
|
|
|
|
import 'dart:ui';
|
|
|
|
|
|
...
|
...
|
@@ -60,15 +61,14 @@ typedef ClickCallback = void Function(String value); |
|
|
|
|
|
|
|
class DialogUtil {
|
|
|
|
static showAuthorityDestination(
|
|
|
|
BuildContext context, String name, String title, String subTitle) {
|
|
|
|
Future.delayed(const Duration(seconds: 5), () {
|
|
|
|
BuildContext context, String name, String title, String subTitle) async {
|
|
|
|
Timer _timer = Timer(const Duration(seconds: 5), () {
|
|
|
|
Navigator.of(context).pop(true);
|
|
|
|
});
|
|
|
|
return showDialog(
|
|
|
|
final action = await showDialog(
|
|
|
|
context: context,
|
|
|
|
barrierDismissible: true,
|
|
|
|
anchorPoint:Offset(0,0),
|
|
|
|
|
|
|
|
anchorPoint: Offset(0, 0),
|
|
|
|
builder: (BuildContext context) {
|
|
|
|
return StatefulBuilder(builder: (context, state) {
|
|
|
|
// locationState = state;
|
|
...
|
...
|
@@ -114,7 +114,10 @@ class DialogUtil { |
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
;
|
|
|
|
print(action);
|
|
|
|
_timer.cancel();
|
|
|
|
|
|
|
|
return action;
|
|
|
|
}
|
|
|
|
|
|
|
|
//模块快过期提醒
|
...
|
...
|
|