From f8fa5c494a592af54483eeaaad9a25930533b9bb Mon Sep 17 00:00:00 2001 From: yaso Date: Tue, 28 Jan 2025 10:35:22 +0200 Subject: [PATCH] add padding around barcode --- .../builder/build_loyalty_card_list.dart | 39 ++++++++++--------- 1 file changed, 21 insertions(+), 18 deletions(-) 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 69725566..ce3be017 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 @@ -67,26 +67,29 @@ class _BuildLoyaltyCardListState extends State { ), child: Column( children: [ - const SizedBox(height: 10), - SizedBox( - height: 75, - width: 300, - child: BarcodeWidget( - //color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), - barcode: Barcode.code128(), - backgroundColor: Colors.white, - data: widget.cardList[index].card_number, - drawText: false, + // const SizedBox(height: 10), + Padding( + padding: const EdgeInsets.all(10.0), + child: SizedBox( + height: 75, + width: 300, + child: BarcodeWidget( + //color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), + barcode: Barcode.code128(), + backgroundColor: Colors.white, + data: widget.cardList[index].card_number, + drawText: false, + ), + // SfBarcodeGenerator( + // backgroundColor: Colors.white, + // barColor: Colors.black, + // value: widget.cardList[index].card_number, + // symbology: Code128(), + // //showValue: true, + // ), ), - // SfBarcodeGenerator( - // backgroundColor: Colors.white, - // barColor: Colors.black, - // value: widget.cardList[index].card_number, - // symbology: Code128(), - // //showValue: true, - // ), ), - const SizedBox(height: 10), + // const SizedBox(height: 10), Text( widget.cardList[index].card_number, style: const TextStyle(