From e3a7e0a510b6bc0684dba3cd49460e9eeee9bb53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cyanghuaxuan=E2=80=9D?= <“646903573@qq.com”> Date: Wed, 14 Apr 2021 14:17:01 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=9B=B4=E6=96=B0=E5=BC=B9=E5=87=BA=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/home_page/home_page.dart | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/lib/pages/home_page/home_page.dart b/lib/pages/home_page/home_page.dart index 930b979..2502602 100644 --- a/lib/pages/home_page/home_page.dart +++ b/lib/pages/home_page/home_page.dart @@ -363,18 +363,19 @@ class _HomePageState extends LifeState with WidgetsBindingObserver, Ti await AppUpdateUtil.initXUpdate(); // 检查app更新 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); } // 场景还原,记录邀请码