Fixed payment information form in address recipient book and fixed some headers
This commit is contained in:
@@ -82,14 +82,31 @@ class _RussianBankFormState extends State<RussianBankForm> {
|
||||
}
|
||||
|
||||
if (newData != null && newData != oldData) {
|
||||
_recipientNameController.text = newData.recipientName;
|
||||
_innController.text = newData.inn;
|
||||
_kppController.text = newData.kpp;
|
||||
_bankNameController.text = newData.bankName;
|
||||
_bikController.text = newData.bik;
|
||||
_accountNumberController.text = newData.accountNumber;
|
||||
_correspondentAccountController.text = newData.correspondentAccount;
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) => _emitIfValid());
|
||||
final hasRecipientNameChange = newData.recipientName != _recipientNameController.text;
|
||||
final hasInnChange = newData.inn != _innController.text;
|
||||
final hasKppChange = newData.kpp != _kppController.text;
|
||||
final hasBankNameChange = newData.bankName != _bankNameController.text;
|
||||
final hasBikChange = newData.bik != _bikController.text;
|
||||
final hasAccountNumberChange = newData.accountNumber != _accountNumberController.text;
|
||||
final hasCorrespondentAccountChange = newData.correspondentAccount != _correspondentAccountController.text;
|
||||
|
||||
if (hasRecipientNameChange) _recipientNameController.text = newData.recipientName;
|
||||
if (hasInnChange) _innController.text = newData.inn;
|
||||
if (hasKppChange) _kppController.text = newData.kpp;
|
||||
if (hasBankNameChange) _bankNameController.text = newData.bankName;
|
||||
if (hasBikChange) _bikController.text = newData.bik;
|
||||
if (hasAccountNumberChange) _accountNumberController.text = newData.accountNumber;
|
||||
if (hasCorrespondentAccountChange) _correspondentAccountController.text = newData.correspondentAccount;
|
||||
|
||||
if (hasRecipientNameChange ||
|
||||
hasInnChange ||
|
||||
hasKppChange ||
|
||||
hasBankNameChange ||
|
||||
hasBikChange ||
|
||||
hasAccountNumberChange ||
|
||||
hasCorrespondentAccountChange) {
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) => _emitIfValid());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user