Fix anonpay clear form buttton (#850)

This commit is contained in:
Godwin Asuquo 2023-03-30 17:43:26 +03:00 committed by GitHub
parent 3006679560
commit 8b7bfd74e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View file

@ -27,9 +27,6 @@ class AnonPayInvoicePage extends BasePage {
this.anonInvoicePageViewModel,
this.receiveOptionViewModel,
) : _amountFocusNode = FocusNode() {
_nameController.text = anonInvoicePageViewModel.receipientName;
_descriptionController.text = anonInvoicePageViewModel.description;
_emailController.text = anonInvoicePageViewModel.receipientEmail;
}
final _nameController = TextEditingController();

View file

@ -22,7 +22,12 @@ class AnonInvoiceForm extends StatelessWidget {
required this.depositAmountFocus,
}) : _nameFocusNode = FocusNode(),
_emailFocusNode = FocusNode(),
_descriptionFocusNode = FocusNode();
_descriptionFocusNode = FocusNode(){
amountController.text = anonInvoicePageViewModel.amount;
nameController.text = anonInvoicePageViewModel.receipientName;
descriptionController.text = anonInvoicePageViewModel.description;
emailController.text = anonInvoicePageViewModel.receipientEmail;
}
final TextEditingController amountController;
final TextEditingController nameController;