From fa86614379e699d61ed9cddd8a9675fe7fc88989 Mon Sep 17 00:00:00 2001 From: vikash singh <46121493+vik4114@users.noreply.github.com> Date: Mon, 21 Mar 2022 10:49:36 +0530 Subject: [PATCH 1/2] Added barcode --- .../smooth_app/lib/pages/product/edit_product_page.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/smooth_app/lib/pages/product/edit_product_page.dart b/packages/smooth_app/lib/pages/product/edit_product_page.dart index eeee22d0568..ae64b05e04a 100644 --- a/packages/smooth_app/lib/pages/product/edit_product_page.dart +++ b/packages/smooth_app/lib/pages/product/edit_product_page.dart @@ -37,6 +37,12 @@ class _EditProductPageState extends State { }, child: ListView( children: [ + ListTile( + title: const Text('Barcode'), // TODO(vik4114): Localization and translations + subtitle: widget.product.barcode == null + ? null + : Text(widget.product.barcode!), + ), _getListTile( title: 'Basic details', subtitle: 'Product name, brand, quantity', From 2e67389266584a661a3913af713edb57e843688b Mon Sep 17 00:00:00 2001 From: vikash singh <46121493+vik4114@users.noreply.github.com> Date: Mon, 21 Mar 2022 10:57:50 +0530 Subject: [PATCH 2/2] fix format --- packages/smooth_app/lib/pages/product/edit_product_page.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/smooth_app/lib/pages/product/edit_product_page.dart b/packages/smooth_app/lib/pages/product/edit_product_page.dart index ae64b05e04a..dabb658033d 100644 --- a/packages/smooth_app/lib/pages/product/edit_product_page.dart +++ b/packages/smooth_app/lib/pages/product/edit_product_page.dart @@ -38,7 +38,8 @@ class _EditProductPageState extends State { child: ListView( children: [ ListTile( - title: const Text('Barcode'), // TODO(vik4114): Localization and translations + title: const Text( + 'Barcode'), // TODO(vik4114): Localization and translations subtitle: widget.product.barcode == null ? null : Text(widget.product.barcode!),