Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#57 We can specify a custom card type logos #63

Merged
merged 1 commit into from Oct 11, 2021

Conversation

meetjanani
Copy link
Contributor

@meetjanani meetjanani commented Sep 28, 2021

❇️ fix #57 We Can specify a custom card type logos

@meetjanani meetjanani changed the title #57 Can we specify a custom card type logos #57 We can specify a custom card type logos Sep 28, 2021
@@ -77,6 +77,17 @@ class MySampleState extends State<MySample> {
useBackgroundImage ? 'assets/card_bg.png' : null,
isSwipeGestureEnabled: true,
onCreditCardWidgetChange: (CreditCardBrand creditCardBrand) {},
cardType: CardType.mastercard,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the requirement of cardtype?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its optional parameter not required, I Removed

CHANGELOG.md Outdated
@@ -1,3 +1,6 @@
## 3.0.1 - Sep 28, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please mention this as unreleased : [Unreleased]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added [Unreleased] tag

}

return icon;
}

List<CustomCardTypeImage> getCustomCardTypeIcon(CardType currentCardType) {
final List<CustomCardTypeImage> customCardTypeIcon = widget.customCardIcons
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No requirement to use variable, you can directly return the value

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

@vatsaltanna vatsaltanna merged commit f1294d5 into SimformSolutionsPvtLtd:master Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Card Type Logos inconsistent styling. Can we specify a custom logo?
4 participants