|
@@ -363,18 +363,19 @@ class _HomePageState extends LifeState<HomePage> with WidgetsBindingObserver, Ti |
|
|
await AppUpdateUtil.initXUpdate(); |
|
|
await AppUpdateUtil.initXUpdate(); |
|
|
// 检查app更新 |
|
|
// 检查app更新 |
|
|
await AppUpdateUtil.updateApp(context); |
|
|
await AppUpdateUtil.updateApp(context); |
|
|
}); |
|
|
|
|
|
|
|
|
// 通知弹窗 |
|
|
|
|
|
|
|
|
// 通知弹窗 |
|
|
|
|
|
|
|
|
if (!await Permission.notification.isGranted || !await Permission.storage.isGranted) { |
|
|
|
|
|
await NotificationSettingDialog.show(context); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (!await Permission.notification.isGranted || !await Permission.storage.isGranted) { |
|
|
|
|
|
await NotificationSettingDialog.show(context); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 活动弹窗 |
|
|
|
|
|
await AdvertisingDialog.show(context); |
|
|
|
|
|
|
|
|
// 活动弹窗 |
|
|
|
|
|
await AdvertisingDialog.show(context); |
|
|
|
|
|
|
|
|
IntellectCreate.checkAndCreateFirst(context); |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
IntellectCreate.checkAndCreateFirst(context); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 场景还原,记录邀请码 |
|
|
// 场景还原,记录邀请码 |
|
|