From 7316646b445fe424b4f51ebc1d2382665e256e94 Mon Sep 17 00:00:00 2001 From: OleksandrSobol Date: Mon, 15 Mar 2021 19:54:04 +0200 Subject: [PATCH] CAKE-292 | removed StandardCheckBox from exchange_page.dart; made receive amount not editable --- lib/src/screens/exchange/exchange_page.dart | 4 ++-- lib/view_model/exchange/exchange_view_model.dart | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/src/screens/exchange/exchange_page.dart b/lib/src/screens/exchange/exchange_page.dart index d811f296f..cfd115811 100644 --- a/lib/src/screens/exchange/exchange_page.dart +++ b/lib/src/screens/exchange/exchange_page.dart @@ -272,7 +272,7 @@ class ExchangePage extends BasePage { ], ), ), - if (exchangeViewModel.isReceiveAmountEditable) Padding( + /*if (exchangeViewModel.isReceiveAmountEditable) Padding( padding: EdgeInsets.only(top: 12, left: 24), child: Row( mainAxisAlignment: MainAxisAlignment.start, @@ -286,7 +286,7 @@ class ExchangePage extends BasePage { ), ], ) - ), + ),*/ Padding( padding: EdgeInsets.only(top: 30, left: 24, bottom: 24), child: Row( diff --git a/lib/view_model/exchange/exchange_view_model.dart b/lib/view_model/exchange/exchange_view_model.dart index a9ff4ceda..e708e93e9 100644 --- a/lib/view_model/exchange/exchange_view_model.dart +++ b/lib/view_model/exchange/exchange_view_model.dart @@ -405,12 +405,13 @@ abstract class ExchangeViewModelBase with Store { } void _defineIsReceiveAmountEditable() { - if ((provider is ChangeNowExchangeProvider) + /*if ((provider is ChangeNowExchangeProvider) &&(depositCurrency == CryptoCurrency.xmr) &&(receiveCurrency == CryptoCurrency.btc)) { isReceiveAmountEditable = true; } else { isReceiveAmountEditable = false; - } + }*/ + isReceiveAmountEditable = false; } }