From fa2e9cd8107c645a3bb4a50491b8a8b6ec6152db Mon Sep 17 00:00:00 2001 From: Serhii-Borodenko Date: Thu, 7 Jul 2022 18:02:38 +0300 Subject: [PATCH] fix exchangenow payment request --- lib/src/screens/exchange/widgets/exchange_card.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/src/screens/exchange/widgets/exchange_card.dart b/lib/src/screens/exchange/widgets/exchange_card.dart index 384fc8d23..a330675fd 100644 --- a/lib/src/screens/exchange/widgets/exchange_card.dart +++ b/lib/src/screens/exchange/widgets/exchange_card.dart @@ -316,9 +316,10 @@ class ExchangeCardState extends State { if (amountController.text.isNotEmpty) { _showAmountPopup(context, paymentRequest); - } else { - amountController.text = paymentRequest.amount; + return; } + widget.amountFocusNode.requestFocus(); + amountController.text = paymentRequest.amount; }, placeholder: widget.hasRefundAddress ? S.of(context).refund_address @@ -465,6 +466,7 @@ class ExchangeCardState extends State { rightButtonText: S.of(context).ok, leftButtonText: S.of(context).cancel, actionRightButton: () { + widget.amountFocusNode.requestFocus(); amountController.text = paymentRequest.amount; Navigator.of(context).pop(); },