card display
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
@@ -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":
|
||||||
|
|||||||
Reference in New Issue
Block a user