mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 09:47:35 +00:00
CAKE-292 | removed StandardCheckBox from exchange_page.dart; made receive amount not editable
This commit is contained in:
parent
206e518e02
commit
7316646b44
2 changed files with 5 additions and 4 deletions
|
@ -272,7 +272,7 @@ class ExchangePage extends BasePage {
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (exchangeViewModel.isReceiveAmountEditable) Padding(
|
/*if (exchangeViewModel.isReceiveAmountEditable) Padding(
|
||||||
padding: EdgeInsets.only(top: 12, left: 24),
|
padding: EdgeInsets.only(top: 12, left: 24),
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
|
@ -286,7 +286,7 @@ class ExchangePage extends BasePage {
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
),
|
),*/
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsets.only(top: 30, left: 24, bottom: 24),
|
padding: EdgeInsets.only(top: 30, left: 24, bottom: 24),
|
||||||
child: Row(
|
child: Row(
|
||||||
|
|
|
@ -405,12 +405,13 @@ abstract class ExchangeViewModelBase with Store {
|
||||||
}
|
}
|
||||||
|
|
||||||
void _defineIsReceiveAmountEditable() {
|
void _defineIsReceiveAmountEditable() {
|
||||||
if ((provider is ChangeNowExchangeProvider)
|
/*if ((provider is ChangeNowExchangeProvider)
|
||||||
&&(depositCurrency == CryptoCurrency.xmr)
|
&&(depositCurrency == CryptoCurrency.xmr)
|
||||||
&&(receiveCurrency == CryptoCurrency.btc)) {
|
&&(receiveCurrency == CryptoCurrency.btc)) {
|
||||||
isReceiveAmountEditable = true;
|
isReceiveAmountEditable = true;
|
||||||
} else {
|
} else {
|
||||||
isReceiveAmountEditable = false;
|
isReceiveAmountEditable = false;
|
||||||
}
|
}*/
|
||||||
|
isReceiveAmountEditable = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue