|
@@ -62,10 +62,6 @@ class _LaunchPageState extends State<LaunchPage> with TickerProviderStateMixin { |
|
|
print('ConnectivityResult.wifi'); |
|
|
print('ConnectivityResult.wifi'); |
|
|
Application.init().then((_) async { |
|
|
Application.init().then((_) async { |
|
|
|
|
|
|
|
|
Timer(Duration(milliseconds: 300), (){ |
|
|
|
|
|
NativeUtil.notifyInitSuccess(); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
PackageInfo packageInfo = await PackageInfo.fromPlatform(); |
|
|
PackageInfo packageInfo = await PackageInfo.fromPlatform(); |
|
|
String versionNumber = await SharedPreferencesUtil.getStringValue(Constants.versionNumber); |
|
|
String versionNumber = await SharedPreferencesUtil.getStringValue(Constants.versionNumber); |
|
|
String currentVersionCode = packageInfo.buildNumber?.toString() ?? ''; |
|
|
String currentVersionCode = packageInfo.buildNumber?.toString() ?? ''; |
|
@@ -131,8 +127,10 @@ class _LaunchPageState extends State<LaunchPage> with TickerProviderStateMixin { |
|
|
guideImages.add(data); |
|
|
guideImages.add(data); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
NativeUtil.notifyInitSuccess(); |
|
|
await Navigator.of(context).push(CupertinoPageRoute(builder: (context) => GuidePage(guide, guideImages))); |
|
|
await Navigator.of(context).push(CupertinoPageRoute(builder: (context) => GuidePage(guide, guideImages))); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} catch (e) { |
|
|
} catch (e) { |
|
|
throw "引导图加载失败"; |
|
|
throw "引导图加载失败"; |
|
|