unfocus fields when tapping exchange [skip ci]

This commit is contained in:
OmarHatem
2025-01-16 19:46:53 +02:00
parent 206c7159c2
commit 24c96edc85
@@ -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) &&