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;
|
dynamic loginError;
|
||||||
|
|
||||||
void startAuthenticationStateChange(AuthenticationStore authenticationStore,
|
void startAuthenticationStateChange(
|
||||||
GlobalKey<NavigatorState> navigatorKey) {
|
AuthenticationStore authenticationStore, GlobalKey<NavigatorState> navigatorKey) {
|
||||||
_onAuthenticationStateChange ??= autorun((_) async {
|
_onAuthenticationStateChange ??= autorun((_) async {
|
||||||
final state = authenticationStore.state;
|
final state = authenticationStore.state;
|
||||||
|
|
||||||
|
@ -24,7 +24,8 @@ void startAuthenticationStateChange(AuthenticationStore authenticationStore,
|
||||||
|
|
||||||
if (state == AuthenticationState.allowed) {
|
if (state == AuthenticationState.allowed) {
|
||||||
// Temporary workaround for the issue with desktopKey dispose
|
// 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);
|
await navigatorKey.currentState!.pushNamedAndRemoveUntil(Routes.dashboard, (route) => false);
|
||||||
return;
|
return;
|
||||||
});
|
});
|
||||||
|
|
|
@ -26,7 +26,6 @@ class SettingActions {
|
||||||
|
|
||||||
static List<SettingActions> desktopSettings = [
|
static List<SettingActions> desktopSettings = [
|
||||||
connectionSettingAction,
|
connectionSettingAction,
|
||||||
walletSettingAction,
|
|
||||||
addressBookSettingAction,
|
addressBookSettingAction,
|
||||||
securityBackupSettingAction,
|
securityBackupSettingAction,
|
||||||
privacySettingAction,
|
privacySettingAction,
|
||||||
|
|
|
@ -22,8 +22,9 @@ dependencies:
|
||||||
barcode_scan2: ^4.2.1
|
barcode_scan2: ^4.2.1
|
||||||
http: ^0.13.4
|
http: ^0.13.4
|
||||||
path_provider: ^2.0.11
|
path_provider: ^2.0.11
|
||||||
mobx: ^2.0.7+4
|
# TODO: Check MobX Logs
|
||||||
flutter_mobx: ^2.0.6+1
|
mobx: 2.0.7+4
|
||||||
|
flutter_mobx: 2.0.6+1
|
||||||
flutter_slidable: ^2.0.0
|
flutter_slidable: ^2.0.0
|
||||||
share_plus: ^4.0.10
|
share_plus: ^4.0.10
|
||||||
# date_range_picker: ^1.0.6
|
# date_range_picker: ^1.0.6
|
||||||
|
|
Loading…
Reference in a new issue