|
|
@@ -357,16 +357,14 @@ class _HomePageState extends LifeState<HomePage> with WidgetsBindingObserver, Ti |
|
|
|
/// |
|
|
|
Future _showPolicy() async { |
|
|
|
// 通知弹窗 |
|
|
|
String isShowNotiPermission = await SharedPreferencesUtil.getStringValue(Constants.isShowNotiPermission); |
|
|
|
if (isShowNotiPermission == null || isShowNotiPermission != '1') { |
|
|
|
|
|
|
|
if (!await Permission.notification.isGranted) { |
|
|
|
await NotificationSettingDialog.show(context); |
|
|
|
await SharedPreferencesUtil.setStringValue(Constants.isShowNotiPermission, "1"); |
|
|
|
} |
|
|
|
|
|
|
|
// 活动弹窗 |
|
|
|
await AdvertisingDialog.show(context); |
|
|
|
|
|
|
|
|
|
|
|
if (!await Permission.storage.isGranted) { |
|
|
|
var result = await showDialog( |
|
|
|
context: context, |
|
|
@@ -387,7 +385,6 @@ class _HomePageState extends LifeState<HomePage> with WidgetsBindingObserver, Ti |
|
|
|
await AppUpdateUtil.initXUpdate(); |
|
|
|
// 检查app更新 |
|
|
|
await AppUpdateUtil.updateApp(context); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
IntellectCreate.checkAndCreateFirst(context); |
|
|
|