|
...
|
...
|
@@ -233,11 +233,11 @@ class DialogUtil { |
|
|
|
|
|
|
|
static showAuthorityDestination(
|
|
|
|
BuildContext context, String name, String title, String subTitle) async {
|
|
|
|
Timer _timer = Timer(const Duration(seconds: 2), () {
|
|
|
|
// if(!TickerMode.of(context)){
|
|
|
|
Navigator.of(context).pop(true);
|
|
|
|
// }
|
|
|
|
});
|
|
|
|
// Timer _timer = Timer(const Duration(seconds: 2), () {
|
|
|
|
// // if(!TickerMode.of(context)){
|
|
|
|
// Navigator.of(context).pop(true);
|
|
|
|
// // }
|
|
|
|
// });
|
|
|
|
final action = await showDialog(
|
|
|
|
context: context,
|
|
|
|
barrierDismissible: true,
|
|
...
|
...
|
@@ -288,7 +288,7 @@ class DialogUtil { |
|
|
|
});
|
|
|
|
|
|
|
|
print(action);
|
|
|
|
_timer.cancel();
|
|
|
|
// _timer.cancel();
|
|
|
|
|
|
|
|
return action;
|
|
|
|
}
|
...
|
...
|
|