From 8f16af4748446c4f0ae83b09f1266740ccd64b3e Mon Sep 17 00:00:00 2001 From: Adegoke David <64401859+Blazebrain@users.noreply.github.com> Date: Thu, 20 Apr 2023 18:14:11 +0100 Subject: [PATCH] CW-344-Exchanging-TO-the-current-wallet-currency-should-allow-changing-the-address (#880) * CW-344-Exchanging-TO-the-current-wallet-currency-should-allow-changing-the-address * Delete widget_test.dart * fix: Revert unneeded changes made * CW-344-Exchanging-TO-the-current-wallet-currency-should-allow-changing-the-address * CW-344-Exchanging-TO-the-current-wallet-currency-should-allow-changing-the-address * fix: Requested changes * Update * CW-344-Exchanging-TO-the-current-wallet-currency-should-allow-changing-the-address * fix: Filter address in address book * Update local branch * CW-344-Exchanging-TO-the-current-wallet-currency-should-allow-changing-the-address * CW-344-Exchanging-TO-the-current-wallet-currency-should-allow-changing-the-address --- lib/src/screens/contact/contact_list_page.dart | 1 + lib/src/screens/exchange/widgets/exchange_card.dart | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/src/screens/contact/contact_list_page.dart b/lib/src/screens/contact/contact_list_page.dart index f8ccf5807..96887ff5f 100644 --- a/lib/src/screens/contact/contact_list_page.dart +++ b/lib/src/screens/contact/contact_list_page.dart @@ -120,6 +120,7 @@ class ContactListPage extends BasePage { if (isCopied) { await Clipboard.setData(ClipboardData(text: contact.address)); await showBar(context, S.of(context).copied_to_clipboard); + } }, child: Container( diff --git a/lib/src/screens/exchange/widgets/exchange_card.dart b/lib/src/screens/exchange/widgets/exchange_card.dart index 0ba112215..ae92fa0c1 100644 --- a/lib/src/screens/exchange/widgets/exchange_card.dart +++ b/lib/src/screens/exchange/widgets/exchange_card.dart @@ -406,7 +406,6 @@ class ExchangeCardState extends State { order: NumericFocusOrder(3), child: BaseTextFormField( controller: addressController, - readOnly: true, borderColor: Colors.transparent, suffixIcon: SizedBox(width: _isMoneroWallet ? 80 : 36), @@ -433,7 +432,10 @@ class ExchangeCardState extends State { onTap: () async { final contact = await Navigator.of(context) - .pushNamed(Routes.pickerAddressBook); + .pushNamed( + Routes.pickerAddressBook, + arguments: widget.initialCurrency, + ); if (contact is ContactBase && contact.address != null) {