card display

This commit is contained in:
2025-03-24 09:11:32 +02:00
parent 8d371082f8
commit fb42c9367a
2 changed files with 3 additions and 0 deletions

View File

@@ -103,6 +103,7 @@ class _MihCardsState extends State<MihCards> {
controller: shopController, controller: shopController,
hintText: "Shop Name", hintText: "Shop Name",
dropdownOptions: const [ dropdownOptions: const [
"Apple Tree",
"Best Before", "Best Before",
"Checkers", "Checkers",
"Clicks", "Clicks",

View File

@@ -16,6 +16,8 @@ class MihCardDisplay extends StatefulWidget {
class _MihCardDisplayState extends State<MihCardDisplay> { class _MihCardDisplayState extends State<MihCardDisplay> {
Widget displayLoyaltyCard() { Widget displayLoyaltyCard() {
switch (widget.shopName.toLowerCase()) { switch (widget.shopName.toLowerCase()) {
case "apple tree":
return Image.asset('images/loyalty_cards/apple_tree.png');
case "best before": case "best before":
return Image.asset('images/loyalty_cards/best_before.png'); return Image.asset('images/loyalty_cards/best_before.png');
case "checkers": case "checkers":