SimformSolutionsPvtLtd / flutter_credit_card

A credit card widget for Flutter application.
https://pub.dev/packages/flutter_credit_card
MIT License
431 stars 262 forks source link

Error-holderName #143

Closed rafaeIpereira closed 1 year ago

rafaeIpereira commented 1 year ago

Describe the bug I enter to credit_card - holderName but don't seem credit_card holderName in credit_card. How to fix this problem ?

Expected behavior My input name does not appear in the card animation

Screenshots ![WhatsApp Image 2023-06-29 at 20 36 49](https://github.co WhatsApp Image 2023-06-29 at 20 40 35 m/SimformSolutionsPvtLtd/flutter_credit_card/assets/84694194/8360a885-5341-4407-abc6-aec6200701af)

Desktop (please complete the following information): -OS(e.g. iOS) -Browser(e.g. chrome, safari) -Version(e.g. 22)

Smartphone (please complete the following information): -Device: Galaxy -Version(flutter_credit_card: ^3.0.7)

vatsaltanna commented 1 year ago

Hi, @rafaeIpereira I have tried to replicate this issue in the latest version, but it's working fine in the example. Are you updating the widget on the callback of onCreditCardModelChange: (cardDetails) ? Please take a reference from the example.

rafaeIpereira commented 1 year ago

Yes, I did it! See my code please. I believe it's correct, I'm using the lastest version this package (flutter_credit_card: ^3.0.7) . . . . . flutter_credit_card

aditya-chavda commented 1 year ago

Hey @rafaeIpereira, thanks for sharing your code!

Upon reviewing your code, I noticed a minor detail that I believe is worth bringing to your attention. It appears that isHolderNameVisible is set to false as the default value in the CreditCardWidget. To ensure that the card holder's name is displayed, kindly consider utilizing isHolderNameVisible: true when using the CreditCardWidget.

Please don't hesitate to return if you encounter any challenges or require further assistance following the adjustment mentioned above.

vatsaltanna commented 1 year ago

Hi @rafaeIpereira , I hope the solution provided by @aditya-chavda will solve your problem. I am closing this issue. Feel free to reopen this issue if the issue still persists.