From c636f32dd8c0b0873b40a1136fa87eb796e940eb Mon Sep 17 00:00:00 2001 From: Godwin Asuquo Date: Mon, 3 Apr 2023 21:08:17 +0300 Subject: [PATCH] Remove nav pop --- android/.project | 11 +++++++++++ android/app/.project | 11 +++++++++++ cw_monero/android/.project | 11 +++++++++++ lib/entities/load_current_wallet.dart | 1 - lib/haven/cw_haven.dart | 6 ++++++ lib/view_model/wallet_keys_view_model.dart | 2 +- 6 files changed, 40 insertions(+), 2 deletions(-) diff --git a/android/.project b/android/.project index 17c95d4b1..b9a96eecf 100644 --- a/android/.project +++ b/android/.project @@ -14,4 +14,15 @@ org.eclipse.buildship.core.gradleprojectnature + + + 1680535977101 + + 30 + + org.eclipse.core.resources.regexFilterMatcher + node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ + + + diff --git a/android/app/.project b/android/app/.project index ac485d7c3..333d8ed77 100644 --- a/android/app/.project +++ b/android/app/.project @@ -20,4 +20,15 @@ org.eclipse.jdt.core.javanature org.eclipse.buildship.core.gradleprojectnature + + + 1680535977148 + + 30 + + org.eclipse.core.resources.regexFilterMatcher + node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ + + + diff --git a/cw_monero/android/.project b/cw_monero/android/.project index e0799208f..4f34c8dad 100644 --- a/cw_monero/android/.project +++ b/cw_monero/android/.project @@ -20,4 +20,15 @@ org.eclipse.jdt.core.javanature org.eclipse.buildship.core.gradleprojectnature + + + 1680535977163 + + 30 + + org.eclipse.core.resources.regexFilterMatcher + node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ + + + diff --git a/lib/entities/load_current_wallet.dart b/lib/entities/load_current_wallet.dart index 9154517c1..421e74558 100644 --- a/lib/entities/load_current_wallet.dart +++ b/lib/entities/load_current_wallet.dart @@ -36,7 +36,6 @@ Future loadCurrentWallet() async { buttonAction: () { Clipboard.setData(ClipboardData(text: wallet.seed)); showBar(navigatorKey.currentContext!,S.current.copied_to_clipboard); - navigatorKey.currentState!.pop(); } )); // appStore.changeCurrentWallet(wallet); diff --git a/lib/haven/cw_haven.dart b/lib/haven/cw_haven.dart index 57c4e49c3..b00fb4f3f 100644 --- a/lib/haven/cw_haven.dart +++ b/lib/haven/cw_haven.dart @@ -328,4 +328,10 @@ class CWHaven extends Haven { @override List getAssetRate() => getRate().map((rate) => AssetRate(rate.getAssetType(), rate.getRate())).toList(); + + @override + int getHeigthByDate({required DateTime date}) { + // TODO: implement getHeigthByDate + throw UnimplementedError(); + } } diff --git a/lib/view_model/wallet_keys_view_model.dart b/lib/view_model/wallet_keys_view_model.dart index 023713bd8..a0d45dbd5 100644 --- a/lib/view_model/wallet_keys_view_model.dart +++ b/lib/view_model/wallet_keys_view_model.dart @@ -66,7 +66,7 @@ abstract class WalletKeysViewModelBase with Store { Future currentHeight() async { if (_wallet.type == WalletType.haven) { - return await haven!.getCurrentHeight(); + // return await haven!.getCurrentHeight(); } if (_wallet.type == WalletType.monero) { return monero_wallet.getCurrentHeight();