|
|
|
@ -19,7 +19,6 @@ class Loading extends StatefulWidget {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class _LoadingState extends State<Loading> {
|
|
|
|
|
|
|
|
|
|
Future initialAll() async {
|
|
|
|
|
await HiveStore.init();
|
|
|
|
|
}
|
|
|
|
@ -32,7 +31,10 @@ class _LoadingState extends State<Loading> {
|
|
|
|
|
if (kDebugMode) {
|
|
|
|
|
print('env :$env');
|
|
|
|
|
}
|
|
|
|
|
DevEV.instance.setEnvironment( context, environment: env == 'dev',);
|
|
|
|
|
DevEV.instance.setEnvironment(
|
|
|
|
|
context,
|
|
|
|
|
environment: env == 'dev',
|
|
|
|
|
);
|
|
|
|
|
Future.delayed(const Duration(milliseconds: 1000), () async {
|
|
|
|
|
await initialAll();
|
|
|
|
|
if (!await userProvider.init()) {
|
|
|
|
@ -51,16 +53,16 @@ class _LoadingState extends State<Loading> {
|
|
|
|
|
//启动图片
|
|
|
|
|
return Scaffold(
|
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
|
body:Stack(
|
|
|
|
|
body: Stack(
|
|
|
|
|
children: [
|
|
|
|
|
Positioned(
|
|
|
|
|
bottom: 158.w,
|
|
|
|
|
left: 143.w,
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
Assets.images.start.path,width:434.sp,height:148.sp , fit: BoxFit.fill),),
|
|
|
|
|
child: Image.asset(Assets.images.start.path,
|
|
|
|
|
width: 434.sp, height: 148.sp, fit: BoxFit.fill),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}}
|
|
|
|
|
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|