From cb1ca8c59535e9f229a245f819198d9f5df3f5ea Mon Sep 17 00:00:00 2001 From: M Date: Wed, 27 Jul 2022 16:13:10 +0100 Subject: [PATCH] Fixes for qr/barcode on ionia gift card screen. --- .../ionia/cards/ionia_gift_card_detail_page.dart | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/src/screens/ionia/cards/ionia_gift_card_detail_page.dart b/lib/src/screens/ionia/cards/ionia_gift_card_detail_page.dart index c9efe7a99..9aa094f4e 100644 --- a/lib/src/screens/ionia/cards/ionia_gift_card_detail_page.dart +++ b/lib/src/screens/ionia/cards/ionia_gift_card_detail_page.dart @@ -90,7 +90,7 @@ class IoniaGiftCardDetailPage extends BasePage { horizontal: 24.0, vertical: 24, ), - child: SizedBox(height: 96, width: double.infinity, child: Image.network(viewModel.giftCard.barcodeUrl)), + child: Image.network(viewModel.giftCard.barcodeUrl), ), SizedBox(height: 24), buildIoniaTile( @@ -98,12 +98,13 @@ class IoniaGiftCardDetailPage extends BasePage { title: S.of(context).gift_card_number, subTitle: viewModel.giftCard.cardNumber, ), - Divider(height: 30), - buildIoniaTile( - context, - title: S.of(context).pin_number, - subTitle: viewModel.giftCard.cardPin ?? '', - ), + if (viewModel.giftCard.cardPin?.isNotEmpty ?? false) + ...[Divider(height: 30), + buildIoniaTile( + context, + title: S.of(context).pin_number, + subTitle: viewModel.giftCard.cardPin, + )], Divider(height: 30), Observer(builder: (_) => buildIoniaTile(