Increase size of card and barcode
This commit is contained in:
@@ -57,9 +57,9 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
|
|||||||
shopName: widget.cardList[index].shop_name, height: 250),
|
shopName: widget.cardList[index].shop_name, height: 250),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
//const SizedBox(height: 10),
|
const SizedBox(height: 20),
|
||||||
Container(
|
Container(
|
||||||
width: 250,
|
width: 500,
|
||||||
//color: Colors.white,
|
//color: Colors.white,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.circular(10),
|
borderRadius: BorderRadius.circular(10),
|
||||||
@@ -69,8 +69,8 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
|
|||||||
children: [
|
children: [
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 10),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: 50,
|
height: 75,
|
||||||
width: 200,
|
width: 300,
|
||||||
child: BarcodeWidget(
|
child: BarcodeWidget(
|
||||||
//color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
//color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
||||||
barcode: Barcode.code128(),
|
barcode: Barcode.code128(),
|
||||||
@@ -86,12 +86,15 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
|
|||||||
// //showValue: true,
|
// //showValue: true,
|
||||||
// ),
|
// ),
|
||||||
),
|
),
|
||||||
|
const SizedBox(height: 10),
|
||||||
Text(
|
Text(
|
||||||
"Card Number: ${widget.cardList[index].card_number}",
|
widget.cardList[index].card_number,
|
||||||
style: TextStyle(
|
style: const TextStyle(
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
//MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
fontSize: 25,
|
||||||
),
|
fontWeight: FontWeight.bold
|
||||||
|
//MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -128,7 +131,8 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
|
|||||||
// shrinkWrap: true,
|
// shrinkWrap: true,
|
||||||
itemCount: widget.cardList.length,
|
itemCount: widget.cardList.length,
|
||||||
gridDelegate: const SliverGridDelegateWithMaxCrossAxisExtent(
|
gridDelegate: const SliverGridDelegateWithMaxCrossAxisExtent(
|
||||||
//mainAxisSpacing: 15,
|
mainAxisSpacing: 0,
|
||||||
|
crossAxisSpacing: 10,
|
||||||
maxCrossAxisExtent: 175,
|
maxCrossAxisExtent: 175,
|
||||||
),
|
),
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
|
|||||||
Reference in New Issue
Block a user