From ec8442357691cdac3e973635663cecdb35f1fb96 Mon Sep 17 00:00:00 2001 From: Adarsh Date: Sat, 15 Jul 2023 13:27:54 +0530 Subject: [PATCH] Minor fixes for consistency --- .../lib/pages/product/common/product_query_page.dart | 6 ++++-- .../smooth_app/lib/pages/product/summary_card.dart | 11 ++++++----- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/packages/smooth_app/lib/pages/product/common/product_query_page.dart b/packages/smooth_app/lib/pages/product/common/product_query_page.dart index 50702b45376..6eacdc63884 100644 --- a/packages/smooth_app/lib/pages/product/common/product_query_page.dart +++ b/packages/smooth_app/lib/pages/product/common/product_query_page.dart @@ -160,7 +160,7 @@ class _ProductQueryPageState extends State : MainAxisAlignment.center, children: [ Padding( - padding: const EdgeInsets.symmetric(vertical: 5), + padding: const EdgeInsets.symmetric(vertical: 5.0), child: RankingFloatingActionButton( onPressed: () => Navigator.push( context, @@ -538,7 +538,9 @@ class _AppBarTitle extends StatelessWidget { Navigator.of(context).pop(ProductQueryPageResult.editProductQuery); }, child: Tooltip( - message: appLocalizations.tap_to_edit_search, child: child)); + message: appLocalizations.tap_to_edit_search, + child: child, + )); } else { return child; } diff --git a/packages/smooth_app/lib/pages/product/summary_card.dart b/packages/smooth_app/lib/pages/product/summary_card.dart index 94a7cccd774..6d5a3e224e0 100644 --- a/packages/smooth_app/lib/pages/product/summary_card.dart +++ b/packages/smooth_app/lib/pages/product/summary_card.dart @@ -316,11 +316,12 @@ class _SummaryCardState extends State { localizations.product_search_same_category, iconData: Icons.leaderboard, onPressed: () async => ProductQueryPageHelper().openBestChoice( - name: categoryLabel!, - localDatabase: _localDatabase, - productQuery: CategoryProductQuery(categoryTag!), - context: context, - searchResult: false), + name: categoryLabel!, + localDatabase: _localDatabase, + productQuery: CategoryProductQuery(categoryTag!), + context: context, + searchResult: false, + ), ), ); }