Skip to content

Commit

Permalink
Merge pull request #159 from darki73/feat-mir-card
Browse files Browse the repository at this point in the history
feat: ✨ Added support for 'mir' cards
  • Loading branch information
Sahil-Simform authored Jan 9, 2025
2 parents 1c62271 + 7e3818d commit ec6369d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Binary file added icons/mir.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/src/utils/asset_paths.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ class AssetPaths {
static const String elo = 'icons/elo.png';
static const String hipercard = 'icons/hipercard.png';
static const String chip = 'icons/chip.png';
static const String mir = 'icons/mir.png';
}
2 changes: 2 additions & 0 deletions lib/src/utils/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ class AppConstants {
<int?>[23, 26]: CardType.mastercard,
<int?>[223, 229]: CardType.mastercard,
<int?>[2221, 2229]: CardType.mastercard,
<int?>[2200, 2204]: CardType.mir,
},
};

Expand All @@ -136,5 +137,6 @@ class AppConstants {
CardType.discover: AssetPaths.discover,
CardType.elo: AssetPaths.elo,
CardType.hipercard: AssetPaths.hipercard,
CardType.mir: AssetPaths.mir,
};
}
1 change: 1 addition & 0 deletions lib/src/utils/enumerations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ enum CardType {
discover,
elo,
hipercard,
mir,
}

/// The type of floating event.
Expand Down

0 comments on commit ec6369d

Please sign in to comment.