From 58a51a90cc82580823927e0956ce63cfa581821d Mon Sep 17 00:00:00 2001 From: monsieurtanuki Date: Thu, 16 Nov 2023 14:04:06 +0100 Subject: [PATCH] feat: 4789 - new "add ingredients" button for nutriscore Impacted file: * `add_new_product_page.dart`: added the "add ingredients" button for the computation of nutriscore of new products --- .../smooth_app/lib/pages/product/add_new_product_page.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/smooth_app/lib/pages/product/add_new_product_page.dart b/packages/smooth_app/lib/pages/product/add_new_product_page.dart index 5e225b5e3caf..cfbab9bfc226 100644 --- a/packages/smooth_app/lib/pages/product/add_new_product_page.dart +++ b/packages/smooth_app/lib/pages/product/add_new_product_page.dart @@ -412,6 +412,12 @@ class _AddNewProductPageState extends State ), done: _nutritionEditor.isPopulated(upToDateProduct), ), + _buildIngredientsButton( + context, + forceIconData: Icons.filter_3, + disabled: (!_categoryEditor.isPopulated(upToDateProduct)) || + (!_nutritionEditor.isPopulated(upToDateProduct)), + ), Center( child: AddNewProductScoreIcon( iconUrl: attribute?.iconUrl,