CAKE-292 | removed StandardCheckBox from exchange_page.dart; made receive amount not editable

OleksandrSobol committed Mar 15, 2021 at 19:54 UTC 7316646b445fe424b4f51ebc1d2382665e256e94
2 files changed +5 -4
lib/src/screens/exchange/exchange_page.dart
+2 -2
@@ -272,7 +272,7 @@ class ExchangePage extends BasePage {
272 ],
273 ),
274 ),
275 - if (exchangeViewModel.isReceiveAmountEditable) Padding(
275 + /*if (exchangeViewModel.isReceiveAmountEditable) Padding(
276 padding: EdgeInsets.only(top: 12, left: 24),
277 child: Row(
278 mainAxisAlignment: MainAxisAlignment.start,
@@ -286,7 +286,7 @@ class ExchangePage extends BasePage {
286 ),
287 ],
288 )
289 - ),
289 + ),*/
290 Padding(
291 padding: EdgeInsets.only(top: 30, left: 24, bottom: 24),
292 child: Row(
lib/view_model/exchange/exchange_view_model.dart
+3 -2
@@ -405,12 +405,13 @@ abstract class ExchangeViewModelBase with Store {
405 }
406
407 void _defineIsReceiveAmountEditable() {
408 - if ((provider is ChangeNowExchangeProvider)
408 + /*if ((provider is ChangeNowExchangeProvider)
409 &&(depositCurrency == CryptoCurrency.xmr)
410 &&(receiveCurrency == CryptoCurrency.btc)) {
411 isReceiveAmountEditable = true;
412 } else {
413 isReceiveAmountEditable = false;
414 - }
414 + }*/
415 + isReceiveAmountEditable = false;
416 }
417 }