|
|
|
import 'dart:async';
|
|
|
|
import 'dart:convert';
|
|
|
|
import 'dart:ui';
|
|
|
|
|
|
...
|
...
|
@@ -59,16 +60,16 @@ typedef ClickCallback = void Function(String value); |
|
|
|
// };
|
|
|
|
|
|
|
|
class DialogUtil {
|
|
|
|
static showAuthorityDestination(
|
|
|
|
BuildContext context, String name, String title, String subTitle) {
|
|
|
|
Future.delayed(const Duration(seconds: 5), () {
|
|
|
|
static showAuthorityDestination(
|
|
|
|
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,9 +115,13 @@ class DialogUtil { |
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
;
|
|
|
|
print(action);
|
|
|
|
_timer.cancel();
|
|
|
|
|
|
|
|
return action;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//模块快过期提醒
|
|
|
|
static showSellerVersionEdateDialog(BuildContext context,
|
|
|
|
List<SellerVersionSunModel> showData, CustomCallBack callback,
|
...
|
...
|
|