From 782253a65389c70f0a1748a51b58d27516be3bbf Mon Sep 17 00:00:00 2001 From: David Adegoke <64401859+Blazebrain@users.noreply.github.com> Date: Wed, 10 Jun 2026 18:54:54 +0100 Subject: [PATCH] fix: propagate buy/sell crypto address to providers without needing to focus the field (#3324) --- lib/src/screens/buy/buy_sell_page.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/src/screens/buy/buy_sell_page.dart b/lib/src/screens/buy/buy_sell_page.dart index 1a3c181cf..6d03445fb 100644 --- a/lib/src/screens/buy/buy_sell_page.dart +++ b/lib/src/screens/buy/buy_sell_page.dart @@ -264,6 +264,10 @@ class BuySellPage extends BasePage { final cryptoAmountController = cryptoCurrencyKey.currentState!.amountController; final cryptoAddressController = cryptoCurrencyKey.currentState!.addressController; + cryptoAddressController.addListener(() { + buySellViewModel.changeCryptoCurrencyAddress(cryptoAddressController.text); + }); + _onCurrencyChange(buySellViewModel.cryptoCurrency, buySellViewModel, cryptoCurrencyKey); _onCurrencyChange(buySellViewModel.fiatCurrency, buySellViewModel, fiatCurrencyKey); @@ -313,10 +317,6 @@ class BuySellPage extends BasePage { } }); - cryptoAddressController.addListener(() { - buySellViewModel.changeCryptoCurrencyAddress(cryptoAddressController.text); - }); - _cryptoAddressFocus.addListener(() async { if (!_cryptoAddressFocus.hasFocus && cryptoAddressController.text.isNotEmpty) { final domain = cryptoAddressController.text;