mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-25 20:16:05 +00:00
CAKE-116 | merged new world branch into current
This commit is contained in:
parent
8495122bcd
commit
dea8f872d5
1 changed files with 7 additions and 4 deletions
|
@ -163,14 +163,14 @@ class SendPage extends BasePage {
|
||||||
.decorationColor),
|
.decorationColor),
|
||||||
validator: sendViewModel.addressValidator,
|
validator: sendViewModel.addressValidator,
|
||||||
),
|
),
|
||||||
Padding(
|
Observer(builder: (_) => Padding(
|
||||||
padding: const EdgeInsets.only(top: 20),
|
padding: const EdgeInsets.only(top: 20),
|
||||||
child: BaseTextFormField(
|
child: BaseTextFormField(
|
||||||
focusNode: _cryptoAmountFocus,
|
focusNode: _cryptoAmountFocus,
|
||||||
controller: _cryptoAmountController,
|
controller: _cryptoAmountController,
|
||||||
keyboardType:
|
keyboardType:
|
||||||
TextInputType.numberWithOptions(
|
TextInputType.numberWithOptions(
|
||||||
signed: false, decimal: true),
|
signed: false, decimal: true),
|
||||||
prefixIcon: Padding(
|
prefixIcon: Padding(
|
||||||
padding: EdgeInsets.only(top: 9),
|
padding: EdgeInsets.only(top: 9),
|
||||||
child: Text(
|
child: Text(
|
||||||
|
@ -226,7 +226,9 @@ class SendPage extends BasePage {
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
fontSize: 14),
|
fontSize: 14),
|
||||||
validator:
|
validator:
|
||||||
sendViewModel.amountValidator)),
|
sendViewModel.sendAll
|
||||||
|
? sendViewModel.allAmountValidator
|
||||||
|
: sendViewModel.amountValidator))),
|
||||||
Observer(
|
Observer(
|
||||||
builder: (_) => Padding(
|
builder: (_) => Padding(
|
||||||
padding: EdgeInsets.only(top: 10),
|
padding: EdgeInsets.only(top: 10),
|
||||||
|
@ -513,6 +515,7 @@ class SendPage extends BasePage {
|
||||||
final amount = _fiatAmountController.text;
|
final amount = _fiatAmountController.text;
|
||||||
|
|
||||||
if (amount != sendViewModel.fiatAmount) {
|
if (amount != sendViewModel.fiatAmount) {
|
||||||
|
sendViewModel.sendAll = false;
|
||||||
sendViewModel.setFiatAmount(amount);
|
sendViewModel.setFiatAmount(amount);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue