fix window content sizing
This commit is contained in:
@@ -145,15 +145,15 @@ class _MihAppWindowState extends State<MihAppWindow> {
|
|||||||
getWindowHeader(),
|
getWindowHeader(),
|
||||||
Flexible(
|
Flexible(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.only(
|
padding: EdgeInsets.only(
|
||||||
left: 15,
|
left: horizontralWindowPadding,
|
||||||
right: 15,
|
right: horizontralWindowPadding,
|
||||||
bottom: 15,
|
bottom: vertticalWindowPadding,
|
||||||
),
|
),
|
||||||
child: ConstrainedBox(
|
child: ConstrainedBox(
|
||||||
constraints: BoxConstraints(
|
constraints: BoxConstraints(
|
||||||
maxHeight: windowHeight * 0.7,
|
maxHeight: windowHeight * 0.85,
|
||||||
maxWidth: windowWidth * 0.7,
|
maxWidth: windowWidth * 0.85,
|
||||||
),
|
),
|
||||||
child: MihSingleChildScroll(
|
child: MihSingleChildScroll(
|
||||||
child: widget.windowBody))),
|
child: widget.windowBody))),
|
||||||
|
|||||||
@@ -216,8 +216,10 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
|
|||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
},
|
},
|
||||||
windowBody: Column(
|
windowBody: Column(
|
||||||
|
mainAxisSize: MainAxisSize.max,
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
|
width: 500,
|
||||||
child: MihCardDisplay(
|
child: MihCardDisplay(
|
||||||
shopName: widget.cardList[index].shop_name, height: 250),
|
shopName: widget.cardList[index].shop_name, height: 250),
|
||||||
),
|
),
|
||||||
@@ -236,7 +238,7 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
|
|||||||
padding: const EdgeInsets.all(10.0),
|
padding: const EdgeInsets.all(10.0),
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
height: 75,
|
height: 75,
|
||||||
width: 300,
|
// width: 300,
|
||||||
child: BarcodeWidget(
|
child: BarcodeWidget(
|
||||||
//color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
//color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
||||||
barcode: Barcode.code128(),
|
barcode: Barcode.code128(),
|
||||||
|
|||||||
@@ -155,9 +155,6 @@ class _MihCardDisplayState extends State<MihCardDisplay> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return SizedBox(
|
return displayLoyaltyCard();
|
||||||
width: 500,
|
|
||||||
child: displayLoyaltyCard(),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user