SimformSolutionsPvtLtd / flutter_credit_card

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

added ability to specify card 'status' #160

Open darki73 opened 11 months ago

darki73 commented 11 months 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 11 months ago

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