|
|
@@ -356,13 +356,7 @@ class _HomePageState extends LifeState<HomePage> with WidgetsBindingObserver, Ti |
|
|
|
/// 3、活动弹窗 |
|
|
|
/// |
|
|
|
Future _showPolicy() async { |
|
|
|
|
|
|
|
|
|
|
|
await Future.delayed(Duration(milliseconds: 600), () async { |
|
|
|
//debug app不更新 app更新插件 |
|
|
|
await AppUpdateUtil.initXUpdate(); |
|
|
|
// 检查app更新 |
|
|
|
await AppUpdateUtil.updateApp(context); |
|
|
|
await Future.delayed(Duration(milliseconds: 1000), () async { |
|
|
|
// 通知弹窗 |
|
|
|
|
|
|
|
if (!await Permission.notification.isGranted || !await Permission.storage.isGranted) { |
|
|
@@ -373,9 +367,14 @@ class _HomePageState extends LifeState<HomePage> with WidgetsBindingObserver, Ti |
|
|
|
await AdvertisingDialog.show(context); |
|
|
|
|
|
|
|
IntellectCreate.checkAndCreateFirst(context); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
await Future.delayed(Duration(seconds: 3), () async { |
|
|
|
//debug app不更新 app更新插件 |
|
|
|
await AppUpdateUtil.initXUpdate(); |
|
|
|
// 检查app更新 |
|
|
|
await AppUpdateUtil.updateApp(context); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
// 场景还原,记录邀请码 |
|
|
|