From 9342e7f72cc28966a17d1c4fa19aab992688fd33 Mon Sep 17 00:00:00 2001 From: Weller <1812208341@qq.com> Date: Thu, 27 May 2021 17:54:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=B9=BF=E5=91=8A=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/home_page/home_page.dart | 6 +++--- lib/pages/launch_page/launch_page.dart | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/pages/home_page/home_page.dart b/lib/pages/home_page/home_page.dart index df9267b..3158774 100644 --- a/lib/pages/home_page/home_page.dart +++ b/lib/pages/home_page/home_page.dart @@ -94,9 +94,9 @@ class _HomePageState extends State with WidgetsBindingObserver, Ticker ///初始化各种监听 initAsync() async { try { - Future.delayed(Duration(milliseconds: 10), () async { - await AdvertisingUtils.openSplashAd(); - }); + // Future.delayed(Duration(milliseconds: 10), () async { + // await AdvertisingUtils.openSplashAd(); + // }); WidgetsBinding.instance.addObserver(this); diff --git a/lib/pages/launch_page/launch_page.dart b/lib/pages/launch_page/launch_page.dart index 6b4c83d..53d897a 100644 --- a/lib/pages/launch_page/launch_page.dart +++ b/lib/pages/launch_page/launch_page.dart @@ -79,6 +79,9 @@ class _LaunchPageState extends State with TickerProviderStateMixin { if (versionNumber == null || versionNumber == '' || versionNumber != currentVersionCode) { await _showGuideImage(); SharedPreferencesUtil.setStringValue(Constants.versionNumber, currentVersionCode); + } else { + bool result = await AdvertisingUtils.openSplashAd(); + print("广告加载" + result.toString()); } if (widget.builder != null) {