Kaynağa Gözat

更新启动成功通知原生关闭启动页

tags/0.0.3+4
Weller 4 yıl önce
ebeveyn
işleme
96eb8b026b
3 değiştirilmiş dosya ile 12 ekleme ve 8 silme
  1. +1
    -1
      .dart_tool/package_config.json
  2. +8
    -4
      lib/pages/launch_page/launch_page.dart
  3. +3
    -3
      lib/register.dart

+ 1
- 1
.dart_tool/package_config.json Dosyayı Görüntüle

@@ -698,7 +698,7 @@
"languageVersion": "2.8"
}
],
"generated": "2021-01-11T01:38:24.309300Z",
"generated": "2021-01-11T02:33:23.833738Z",
"generator": "pub",
"generatorVersion": "2.8.2"
}

+ 8
- 4
lib/pages/launch_page/launch_page.dart Dosyayı Görüntüle

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

@override
Widget build(BuildContext context) {
return Image.asset(
'assets/images/launch_image/launch_image.png',
package: 'zhiying_base_widget',
fit: BoxFit.fill,
return Container(
color: Colors.white,
child: Image.asset(
'assets/images/launch_image/launch_image.png',
package: 'zhiying_base_widget',
fit: BoxFit.fill,
),
);
}
}

+ 3
- 3
lib/register.dart Dosyayı Görüntüle

@@ -154,9 +154,9 @@ class BaseWidgetRegister {
});

// 延迟一秒
Application.addMethod(() async {
return Future.delayed(Duration(seconds: 1));
});
// Application.addMethod(() async {
// return Future.delayed(Duration(seconds: 1));
// });
}

// 注册页面


Yükleniyor…
İptal
Kaydet