Browse Source

修复启动页的顺序

tags/0.0.3+4^0
Weller 3 years ago
parent
commit
8e622ba044
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      lib/pages/launch_page/launch_page.dart

+ 2
- 1
lib/pages/launch_page/launch_page.dart View File

@@ -40,6 +40,8 @@ class _LaunchPageState extends State<LaunchPage> {
Logger.debug('ConnectivityResult.wifi'); Logger.debug('ConnectivityResult.wifi');
print('ConnectivityResult.wifi'); print('ConnectivityResult.wifi');
Application.init().then((_) async { Application.init().then((_) async {
NativeUtil.notifyInitSuccess();

PackageInfo packageInfo = await PackageInfo.fromPlatform(); PackageInfo packageInfo = await PackageInfo.fromPlatform();
String versionNumber = String versionNumber =
await SharedPreferencesUtil.getStringValue(Constants.versionNumber); await SharedPreferencesUtil.getStringValue(Constants.versionNumber);
@@ -58,7 +60,6 @@ class _LaunchPageState extends State<LaunchPage> {
// CupertinoPageRoute(builder: (context) => HomePage())); // CupertinoPageRoute(builder: (context) => HomePage()));
Navigator.of(context).pushReplacementNamed('/homePage'); Navigator.of(context).pushReplacementNamed('/homePage');
} }
NativeUtil.notifyInitSuccess();
}).catchError((err) async { }).catchError((err) async {
if(err.toString().contains("BaseSettingModel")){ if(err.toString().contains("BaseSettingModel")){
await showDialog(context: context,child: TipDialog(content: "基本配置加载失败!请检查网络是否可用后再启动应用!",)); await showDialog(context: context,child: TipDialog(content: "基本配置加载失败!请检查网络是否可用后再启动应用!",));


Loading…
Cancel
Save