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

Added verve brand #145

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added icons/verve.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions lib/credit_card_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const Map<CardType, String> CardTypeIconAsset = <CardType, String>{
CardType.discover: 'icons/discover.png',
CardType.elo: 'icons/elo.png',
CardType.hipercard: 'icons/hipercard.png',
CardType.verve: 'icons/verve.png',
};

class CreditCardWidget extends StatefulWidget {
Expand Down Expand Up @@ -753,6 +754,12 @@ class _CreditCardWidgetState extends State<CreditCardWidget>
isAmex = true;
break;

case CardType.verve:
icon = Image.asset(CardTypeIconAsset[ccType]!,
height: 48, width: 48, package: 'flutter_credit_card');
isAmex = false;
break;

default:
icon = Container(
height: 48,
Expand Down Expand Up @@ -903,4 +910,5 @@ enum CardType {
discover,
elo,
hipercard,
verve
DiekoMA marked this conversation as resolved.
Show resolved Hide resolved
}