From b18f00e8a69e60b9a722608e4df66c5db4db2c90 Mon Sep 17 00:00:00 2001 From: Weller <1812208341@qq.com> Date: Thu, 26 Nov 2020 10:16:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=94=81=E7=B2=89=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/home_page/home_page.dart | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/lib/pages/home_page/home_page.dart b/lib/pages/home_page/home_page.dart index 64ba3d4..9fd9954 100644 --- a/lib/pages/home_page/home_page.dart +++ b/lib/pages/home_page/home_page.dart @@ -204,12 +204,11 @@ class _HomePageState extends State with WidgetsBindingObserver { // 场景还原,记录邀请码 void _restore(MLSDKScene scene) { // const bool inProduction = const bool.fromEnvironment("dart.vm.product"); - bool inProduction = false; - if (!inProduction) { - // 非release环境,弹窗测试 - showAlert('要还原的路径为:' + scene.className + '\n' + scene.params.toString(), - context); - } + // if (!inProduction) { + // // 非release环境,弹窗测试 + // showAlert('要还原的路径为:' + scene.className + '\n' + scene.params.toString(), + // context); + // } Logger.debug('要还原的路径为:' + scene.className); try { Map params = Map.from(scene.params); @@ -230,11 +229,10 @@ class _HomePageState extends State with WidgetsBindingObserver { if (null != event) { Map params = Map.from(event); // const bool inProduction = const bool.fromEnvironment("dart.vm.product"); - bool inProduction = false; - if (!inProduction) { - // 非release环境,弹窗测试 - showAlert('要还原的路径为[活着]:$event', context); - } + // if (!inProduction) { + // // 非release环境,弹窗测试 + // showAlert('要还原的路径为[活着]:$event', context); + // } if (params['params'].containsKey('tgid')) { String tgid = params['params']['tgid'].toString(); // 记录邀请码到本地