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,
|
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":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue