card display
This commit is contained in:
parent
8d371082f8
commit
fb42c9367a
2 changed files with 3 additions and 0 deletions
|
|
@ -103,6 +103,7 @@ class _MihCardsState extends State<MihCards> {
|
|||
controller: shopController,
|
||||
hintText: "Shop Name",
|
||||
dropdownOptions: const [
|
||||
"Apple Tree",
|
||||
"Best Before",
|
||||
"Checkers",
|
||||
"Clicks",
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ class MihCardDisplay extends StatefulWidget {
|
|||
class _MihCardDisplayState extends State<MihCardDisplay> {
|
||||
Widget displayLoyaltyCard() {
|
||||
switch (widget.shopName.toLowerCase()) {
|
||||
case "apple tree":
|
||||
return Image.asset('images/loyalty_cards/apple_tree.png');
|
||||
case "best before":
|
||||
return Image.asset('images/loyalty_cards/best_before.png');
|
||||
case "checkers":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue