|
|
@ -40,6 +40,8 @@ class _SplashPageState extends State<SplashPage> {
|
|
|
|
//ensure call _originOp first.
|
|
|
|
//ensure call _originOp first.
|
|
|
|
await _originOp();
|
|
|
|
await _originOp();
|
|
|
|
final userProvider = Provider.of<UserProvider>(context, listen: false);
|
|
|
|
final userProvider = Provider.of<UserProvider>(context, listen: false);
|
|
|
|
|
|
|
|
final appProvider = Provider.of<AppProvider>(context, listen: false);
|
|
|
|
|
|
|
|
appProvider.initApplications();
|
|
|
|
//app init delay 2 second
|
|
|
|
//app init delay 2 second
|
|
|
|
await Future.delayed(Duration(seconds: 2));
|
|
|
|
await Future.delayed(Duration(seconds: 2));
|
|
|
|
if (HiveStore.appBox.get('login') ?? false) {
|
|
|
|
if (HiveStore.appBox.get('login') ?? false) {
|
|
|
|