Merge pull request #165 from yaso-meth/QOL--Loyalty-Card-look-and-feel

fix window content sizing
This commit is contained in:
yaso-meth
2025-05-12 13:01:59 +02:00
committed by GitHub
3 changed files with 10 additions and 11 deletions

View File

@@ -145,15 +145,15 @@ class _MihAppWindowState extends State<MihAppWindow> {
getWindowHeader(),
Flexible(
child: Padding(
padding: const EdgeInsets.only(
left: 15,
right: 15,
bottom: 15,
padding: EdgeInsets.only(
left: horizontralWindowPadding,
right: horizontralWindowPadding,
bottom: vertticalWindowPadding,
),
child: ConstrainedBox(
constraints: BoxConstraints(
maxHeight: windowHeight * 0.7,
maxWidth: windowWidth * 0.7,
maxHeight: windowHeight * 0.85,
maxWidth: windowWidth * 0.85,
),
child: MihSingleChildScroll(
child: widget.windowBody))),

View File

@@ -216,8 +216,10 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
Navigator.pop(context);
},
windowBody: Column(
mainAxisSize: MainAxisSize.max,
children: [
Container(
width: 500,
child: MihCardDisplay(
shopName: widget.cardList[index].shop_name, height: 250),
),
@@ -236,7 +238,7 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
padding: const EdgeInsets.all(10.0),
child: SizedBox(
height: 75,
width: 300,
// width: 300,
child: BarcodeWidget(
//color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
barcode: Barcode.code128(),

View File

@@ -155,9 +155,6 @@ class _MihCardDisplayState extends State<MihCardDisplay> {
@override
Widget build(BuildContext context) {
return SizedBox(
width: 500,
child: displayLoyaltyCard(),
);
return displayLoyaltyCard();
}
}