From ae85d7282ab7261133195cad9cceeae421062cdb Mon Sep 17 00:00:00 2001 From: Abhishek Bhatt <47862474+bhattabhi013@users.noreply.github.com> Date: Fri, 1 Apr 2022 17:17:23 +0530 Subject: [PATCH] fix: remove compare with category from scan card (#1439) --- .../lib/pages/product/summary_card.dart | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/packages/smooth_app/lib/pages/product/summary_card.dart b/packages/smooth_app/lib/pages/product/summary_card.dart index a0b92ffe5df..3054554f29c 100644 --- a/packages/smooth_app/lib/pages/product/summary_card.dart +++ b/packages/smooth_app/lib/pages/product/summary_card.dart @@ -252,22 +252,23 @@ class _SummaryCardState extends State { 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) ||