|
|
@ -19,6 +19,7 @@ class Loading extends StatefulWidget {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class _LoadingState extends State<Loading> {
|
|
|
|
class _LoadingState extends State<Loading> {
|
|
|
|
|
|
|
|
|
|
|
|
Future initialAll() async {
|
|
|
|
Future initialAll() async {
|
|
|
|
await HiveStore.init();
|
|
|
|
await HiveStore.init();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -31,10 +32,7 @@ class _LoadingState extends State<Loading> {
|
|
|
|
if (kDebugMode) {
|
|
|
|
if (kDebugMode) {
|
|
|
|
print('env :$env');
|
|
|
|
print('env :$env');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
DevEV.instance.setEnvironment(
|
|
|
|
DevEV.instance.setEnvironment( context, environment: env == 'dev',);
|
|
|
|
context,
|
|
|
|
|
|
|
|
environment: env == 'dev',
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
Future.delayed(const Duration(milliseconds: 1000), () async {
|
|
|
|
Future.delayed(const Duration(milliseconds: 1000), () async {
|
|
|
|
await initialAll();
|
|
|
|
await initialAll();
|
|
|
|
if (!await userProvider.init()) {
|
|
|
|
if (!await userProvider.init()) {
|
|
|
@ -58,11 +56,11 @@ class _LoadingState extends State<Loading> {
|
|
|
|
Positioned(
|
|
|
|
Positioned(
|
|
|
|
bottom: 158.w,
|
|
|
|
bottom: 158.w,
|
|
|
|
left: 143.w,
|
|
|
|
left: 143.w,
|
|
|
|
child: Image.asset(Assets.images.start.path,
|
|
|
|
child: Image.asset(
|
|
|
|
width: 434.sp, height: 148.sp, fit: BoxFit.fill),
|
|
|
|
Assets.images.start.path,width:434.sp,height:148.sp , fit: BoxFit.fill),),
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
));
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}}
|
|
|
|
|
|
|
|
|
|
|
|