mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-22 02:34:59 +00:00
Fixate MobX version to fix restore issue
This commit is contained in:
parent
e8fa3953b5
commit
14a4d41339
3 changed files with 7 additions and 6 deletions
|
@ -8,8 +8,8 @@ ReactionDisposer? _onAuthenticationStateChange;
|
|||
|
||||
dynamic loginError;
|
||||
|
||||
void startAuthenticationStateChange(AuthenticationStore authenticationStore,
|
||||
GlobalKey<NavigatorState> navigatorKey) {
|
||||
void startAuthenticationStateChange(
|
||||
AuthenticationStore authenticationStore, GlobalKey<NavigatorState> navigatorKey) {
|
||||
_onAuthenticationStateChange ??= autorun((_) async {
|
||||
final state = authenticationStore.state;
|
||||
|
||||
|
@ -24,7 +24,8 @@ void startAuthenticationStateChange(AuthenticationStore authenticationStore,
|
|||
|
||||
if (state == AuthenticationState.allowed) {
|
||||
// Temporary workaround for the issue with desktopKey dispose
|
||||
Future.delayed(Duration(milliseconds: 2), () async {
|
||||
// TODO: Remove this workaround and fix global key issue
|
||||
Future.delayed(Duration(milliseconds: 500), () async {
|
||||
await navigatorKey.currentState!.pushNamedAndRemoveUntil(Routes.dashboard, (route) => false);
|
||||
return;
|
||||
});
|
||||
|
|
|
@ -26,7 +26,6 @@ class SettingActions {
|
|||
|
||||
static List<SettingActions> desktopSettings = [
|
||||
connectionSettingAction,
|
||||
walletSettingAction,
|
||||
addressBookSettingAction,
|
||||
securityBackupSettingAction,
|
||||
privacySettingAction,
|
||||
|
|
|
@ -22,8 +22,9 @@ dependencies:
|
|||
barcode_scan2: ^4.2.1
|
||||
http: ^0.13.4
|
||||
path_provider: ^2.0.11
|
||||
mobx: ^2.0.7+4
|
||||
flutter_mobx: ^2.0.6+1
|
||||
# TODO: Check MobX Logs
|
||||
mobx: 2.0.7+4
|
||||
flutter_mobx: 2.0.6+1
|
||||
flutter_slidable: ^2.0.0
|
||||
share_plus: ^4.0.10
|
||||
# date_range_picker: ^1.0.6
|
||||
|
|
Loading…
Reference in a new issue