add padding around barcode
This commit is contained in:
@@ -67,26 +67,29 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
|
|||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
const SizedBox(height: 10),
|
// const SizedBox(height: 10),
|
||||||
SizedBox(
|
Padding(
|
||||||
height: 75,
|
padding: const EdgeInsets.all(10.0),
|
||||||
width: 300,
|
child: SizedBox(
|
||||||
child: BarcodeWidget(
|
height: 75,
|
||||||
//color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
width: 300,
|
||||||
barcode: Barcode.code128(),
|
child: BarcodeWidget(
|
||||||
backgroundColor: Colors.white,
|
//color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
||||||
data: widget.cardList[index].card_number,
|
barcode: Barcode.code128(),
|
||||||
drawText: false,
|
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(
|
Text(
|
||||||
widget.cardList[index].card_number,
|
widget.cardList[index].card_number,
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
|
|||||||
Reference in New Issue
Block a user