forked from yaso_meth/mih-project
card display
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user