From 39ea391165da22990077ce6a29b6495d14a3e1d8 Mon Sep 17 00:00:00 2001 From: Vikash singh <46121493+vik4114@users.noreply.github.com> Date: Sun, 20 Mar 2022 18:05:29 +0530 Subject: [PATCH] feat: Button for missing basic details (#1272) * Added button for missing basic details * Fix format * Typo fixed * Added snack bar for the button --- .../lib/pages/product/summary_card.dart | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/packages/smooth_app/lib/pages/product/summary_card.dart b/packages/smooth_app/lib/pages/product/summary_card.dart index 7fc73d4d6b3..09696cdf90e 100644 --- a/packages/smooth_app/lib/pages/product/summary_card.dart +++ b/packages/smooth_app/lib/pages/product/summary_card.dart @@ -266,6 +266,22 @@ class _SummaryCardState extends State { context: context, ), ), + if ((widget._product.statesTags + ?.contains('en:product-name-to-be-completed') ?? + false) || + (widget._product.statesTags + ?.contains('en:quantity-to-be-completed') ?? + false)) + addPanelButton( + 'Complete basic details', // TODO(vik4114): localization + onPressed: () { + ScaffoldMessenger.of(context).showSnackBar( + const SnackBar( + content: Text('Not implemented yet'), + duration: Duration(seconds: 2), + ), + ); + }), ], ); }