Skip to content

Commit

Permalink
feat: Button for missing basic details (#1272)
Browse files Browse the repository at this point in the history
* Added button for missing basic details

* Fix format

* Typo fixed

* Added snack bar for the button
  • Loading branch information
vik4114 authored Mar 20, 2022
1 parent 93010ab commit 39ea391
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/smooth_app/lib/pages/product/summary_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,22 @@ class _SummaryCardState extends State<SummaryCard> {
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),
),
);
}),
],
);
}
Expand Down

0 comments on commit 39ea391

Please sign in to comment.