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

added ability to specify card 'status' #160

Open darki73 opened 1 year ago

darki73 commented 1 year ago

This pull request adds an ability to specify the 'status' of the card, similar to this: (this image was obtained by googling "mastercard platinum")

When:

return CreditCardWidget(
  bankName: 'ADCB',
  cardStatus: 'Platinum',
);

image

When:

return CreditCardWidget(
  bankName: 'ADCB',
);

image

When:

return CreditCardWidget(
  cardStatus: 'Platinum',
);

image

darki73 commented 1 year ago

I know I'm using too many if conditions, but this PR was hastily thrown together during the development of my application.