forked from yaso_meth/mih-project
Merge pull request #165 from yaso-meth/QOL--Loyalty-Card-look-and-feel
fix window content sizing
This commit is contained in:
@@ -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))),
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -155,9 +155,6 @@ class _MihCardDisplayState extends State<MihCardDisplay> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return SizedBox(
|
||||
width: 500,
|
||||
child: displayLoyaltyCard(),
|
||||
);
|
||||
return displayLoyaltyCard();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user