Skip to content

Commit

Permalink
feat: 4789 - new "add ingredients" button for nutriscore
Browse files Browse the repository at this point in the history
Impacted file:
* `add_new_product_page.dart`: added the "add ingredients" button for the computation of nutriscore of new products
  • Loading branch information
monsieurtanuki committed Nov 16, 2023
1 parent 9d03d4b commit 58a51a9
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,12 @@ class _AddNewProductPageState extends State<AddNewProductPage>
),
done: _nutritionEditor.isPopulated(upToDateProduct),
),
_buildIngredientsButton(
context,
forceIconData: Icons.filter_3,
disabled: (!_categoryEditor.isPopulated(upToDateProduct)) ||
(!_nutritionEditor.isPopulated(upToDateProduct)),
),
Center(
child: AddNewProductScoreIcon(
iconUrl: attribute?.iconUrl,
Expand Down

0 comments on commit 58a51a9

Please sign in to comment.