mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-21 22:58:49 +00:00
manual address entry bug fix
This commit is contained in:
parent
aa91311cca
commit
6e5735b672
1 changed files with 12 additions and 2 deletions
|
@ -263,7 +263,12 @@ class _Step2ViewState extends ConsumerState<Step2View> {
|
||||||
focusNode: _toFocusNode,
|
focusNode: _toFocusNode,
|
||||||
style: STextStyles.field(context),
|
style: STextStyles.field(context),
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
setState(() {});
|
model.recipientAddress = _toController.text;
|
||||||
|
setState(() {
|
||||||
|
enableNext = _toController.text.isNotEmpty &&
|
||||||
|
(_refundController.text.isNotEmpty ||
|
||||||
|
!supportsRefund);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
decoration: standardInputDecoration(
|
decoration: standardInputDecoration(
|
||||||
"Enter the ${model.receiveTicker.toUpperCase()} payout address",
|
"Enter the ${model.receiveTicker.toUpperCase()} payout address",
|
||||||
|
@ -529,7 +534,12 @@ class _Step2ViewState extends ConsumerState<Step2View> {
|
||||||
focusNode: _refundFocusNode,
|
focusNode: _refundFocusNode,
|
||||||
style: STextStyles.field(context),
|
style: STextStyles.field(context),
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
setState(() {});
|
model.refundAddress = _refundController.text;
|
||||||
|
setState(() {
|
||||||
|
enableNext =
|
||||||
|
_toController.text.isNotEmpty &&
|
||||||
|
_refundController.text.isNotEmpty;
|
||||||
|
});
|
||||||
},
|
},
|
||||||
decoration: standardInputDecoration(
|
decoration: standardInputDecoration(
|
||||||
"Enter ${model.sendTicker.toUpperCase()} refund address",
|
"Enter ${model.sendTicker.toUpperCase()} refund address",
|
||||||
|
|
Loading…
Reference in a new issue