Skip to content

Commit

Permalink
adding init values
Browse files Browse the repository at this point in the history
  • Loading branch information
rossman-x authored and DevarshRanpara committed Aug 10, 2022
1 parent 65094b5 commit 9ca9eee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/credit_card_form.dart
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ class _CreditCardFormState extends State<CreditCardForm> {
super.initState();

createCreditCardModel();

_cardNumberController.text = widget.cardNumber;
_expiryDateController.text = widget.expiryDate;
_cardHolderNameController.text = widget.cardHolderName;
_cvvCodeController.text = widget.cvvCode;

onCreditCardModelChange = widget.onCreditCardModelChange;

Expand Down

0 comments on commit 9ca9eee

Please sign in to comment.