Sfoglia il codice sorgente

1.优化通知

tags/0.0.13
“yanghuaxuan” 3 anni fa
parent
commit
ab08bf40f4
1 ha cambiato i file con 2 aggiunte e 5 eliminazioni
  1. +2
    -5
      lib/pages/home_page/home_page.dart

+ 2
- 5
lib/pages/home_page/home_page.dart Vedi File

@@ -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);


Caricamento…
Annulla
Salva