Skip to content

Commit

Permalink
fix: remove compare with category from scan card (#1439)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhattabhi013 authored Apr 1, 2022
1 parent d646f42 commit ae85d72
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions packages/smooth_app/lib/pages/product/summary_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -252,22 +252,23 @@ class _SummaryCardState extends State<SummaryCard> {
false)
addPanelButton(appLocalizations.score_add_missing_product_category,
onPressed: () {}),
if (categoryTag != null && categoryLabel != null)
addPanelButton(
appLocalizations.product_search_same_category,
iconData: Icons.leaderboard,
onPressed: () async => ProductQueryPageHelper().openBestChoice(
color: Colors.deepPurple,
heroTag: 'search_bar',
name: categoryLabel!,
localDatabase: localDatabase,
productQuery: CategoryProductQuery(
categoryTag: widget._product.categoriesTags!.last,
size: 500,
if (widget.isFullVersion)
if (categoryTag != null && categoryLabel != null)
addPanelButton(
appLocalizations.product_search_same_category,
iconData: Icons.leaderboard,
onPressed: () async => ProductQueryPageHelper().openBestChoice(
color: Colors.deepPurple,
heroTag: 'search_bar',
name: categoryLabel!,
localDatabase: localDatabase,
productQuery: CategoryProductQuery(
categoryTag: widget._product.categoriesTags!.last,
size: 500,
),
context: context,
),
context: context,
),
),
if ((widget._product.statesTags
?.contains('en:product-name-to-be-completed') ??
false) ||
Expand Down

0 comments on commit ae85d72

Please sign in to comment.