add nickanme to display

This commit is contained in:
2025-05-22 11:23:38 +02:00
parent 795950adcb
commit 9cd68e3591
2 changed files with 30 additions and 3 deletions

View File

@@ -2,11 +2,13 @@ import 'package:flutter/material.dart';
class MihCardDisplay extends StatefulWidget {
final String shopName;
final String nickname;
final double height;
const MihCardDisplay({
super.key,
required this.shopName,
required this.height,
required this.nickname,
});
@override
@@ -155,6 +157,19 @@ class _MihCardDisplayState extends State<MihCardDisplay> {
@override
Widget build(BuildContext context) {
return displayLoyaltyCard();
return Column(
children: [
displayLoyaltyCard(),
FittedBox(
child: Text(
widget.nickname,
style: const TextStyle(
fontSize: 25,
fontWeight: FontWeight.bold,
),
),
)
],
);
}
}