Merge pull request #139 from yaso-meth/NEW--Loyalty-Crads

add cards
This commit is contained in:
yaso-meth
2025-04-15 12:37:48 +02:00
committed by GitHub
12 changed files with 40 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

@@ -73,6 +73,36 @@ class _MihCardDisplayState extends State<MihCardDisplay> {
case "eskom":
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/eskom.png');
case "+more":
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/plus_more.png');
case "bp":
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/bp.png');
case "builders warehouse":
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/builders.png');
case "exclusive books":
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/exclusive_books.png');
case "pna":
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/pna.png');
case "pq clothing":
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/pq.png');
case "rage":
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/rage.png');
case "sasol":
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/sasol.png');
case "tfg group":
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/tfg.png');
case "toys r us":
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/toysrus.png');
default:
return const Placeholder();
}

View File

@@ -105,24 +105,34 @@ class _MihCardsState extends State<MihCards> {
controller: shopController,
hintText: "Shop Name",
dropdownOptions: const [
"+More",
"Apple Tree",
"Best Before",
"BP",
"Builders Warehouse",
"Checkers",
"Clicks",
"Cotton:On",
"Dis-Chem",
"Edgars",
"Eskom",
"Exclusive Books",
"Fresh Stop",
"Infinity",
"Jet",
"Makro",
"Panarottis",
"Pick n Pay",
"PnA",
"PQ Clothing",
"Rage",
"Sasol",
"Shell",
"Shoprite",
"Spar",
"Spur",
"TFG Group",
"Toys R Us",
"Woolworths"
],
required: true,