diff --git a/Frontend/lib/mih_components/mih_package_components/mih_app_window.dart b/Frontend/lib/mih_components/mih_package_components/mih_app_window.dart index 71f48f7c..74a58bc8 100644 --- a/Frontend/lib/mih_components/mih_package_components/mih_app_window.dart +++ b/Frontend/lib/mih_components/mih_package_components/mih_app_window.dart @@ -145,15 +145,15 @@ class _MihAppWindowState extends State { 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))), diff --git a/Frontend/lib/mih_packages/mzansi_wallet/builder/build_loyalty_card_list.dart b/Frontend/lib/mih_packages/mzansi_wallet/builder/build_loyalty_card_list.dart index 30ce56d9..1284d7dd 100644 --- a/Frontend/lib/mih_packages/mzansi_wallet/builder/build_loyalty_card_list.dart +++ b/Frontend/lib/mih_packages/mzansi_wallet/builder/build_loyalty_card_list.dart @@ -216,8 +216,10 @@ class _BuildLoyaltyCardListState extends State { 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 { 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(), diff --git a/Frontend/lib/mih_packages/mzansi_wallet/components/mih_card_display.dart b/Frontend/lib/mih_packages/mzansi_wallet/components/mih_card_display.dart index 2e0fa58d..72135830 100644 --- a/Frontend/lib/mih_packages/mzansi_wallet/components/mih_card_display.dart +++ b/Frontend/lib/mih_packages/mzansi_wallet/components/mih_card_display.dart @@ -155,9 +155,6 @@ class _MihCardDisplayState extends State { @override Widget build(BuildContext context) { - return SizedBox( - width: 500, - child: displayLoyaltyCard(), - ); + return displayLoyaltyCard(); } }