From 24c96edc854c612e99ab64911f1e7e48f13c8cd4 Mon Sep 17 00:00:00 2001 From: OmarHatem Date: Thu, 16 Jan 2025 19:46:53 +0200 Subject: [PATCH] unfocus fields when tapping exchange [skip ci] --- lib/src/screens/exchange/exchange_page.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/screens/exchange/exchange_page.dart b/lib/src/screens/exchange/exchange_page.dart index 2f8e3eb5ce..4fb2a2c870 100644 --- a/lib/src/screens/exchange/exchange_page.dart +++ b/lib/src/screens/exchange/exchange_page.dart @@ -231,6 +231,8 @@ class ExchangePage extends BasePage { key: ValueKey('exchange_page_exchange_button_key'), text: S.of(context).exchange, onPressed: () { + FocusScope.of(context).unfocus(); + if (_formKey.currentState != null && _formKey.currentState!.validate()) { if ((exchangeViewModel.depositCurrency == CryptoCurrency.xmr) &&