* feat: 5553 - add prices for category products
New files:
* `price_category_input_page.dart`: Page that lets the user type in and select a single category for prices.
* `price_per_extension.dart`: Extension for PricePer.
Impacted files:
* `app_en.arb`: added 4 labels related to category and prices
* `app_fr.arb`: added 4 labels related to category and prices
* `background_task_add_other_price.dart`: added parameters related to category prices
* `background_task_add_price.dart`: added parameters related to category prices
* `background_task_price.dart`: added parameters related to category prices
* `price_add_product_card.dart`: added an "add category product" button
* `price_amount_card.dart`: added a DropDownButton for "price per" for category product
* `price_amount_model.dart`: taken category prices into consideration
* `price_existing_amount_card.dart`: unrelated localization
* `price_meta_product.dart`: added a new meta product, related to category
* `price_model.dart`: added parameters related to category prices
* `smooth_autocomplete_text_field.dart`: added an "onSelected" optional parameter, in order to be able to select immediately a suggestion
* `smooth_dropdown.dart`: added an "isExpanded" optional parameter, in order to match the screen width
* minor refactoring and localizations
Impacted files:
* `app_en.arb`: additional translations for "price per"
* `app_fr.arb`: additional translations for "price per"
* `price_existing_amount_field.dart`: localization
* `price_meta_product.dart`: minor refactoring
* `price_per_extension.dart`: additional translations for "price per"
* reformatting
* added origins and prepared code for labels
Impacted files:
* `app_en.arb`: improved a label and added 3 labels
* `app_fr.arb`: improved a label and added 3 labels
* `background_task_add_other_price.dart`: now setting origins and labels
* `background_task_add_price.dart`: now setting origins and labels
* `background_task_price.dart`: now setting origins and labels
* `price_add_product_card.dart`: refactored as we now set origins too (in addition to just category)
* `price_category_input_page.dart`: refactored as we now set origins too (in addition to just category)
* `price_existing_amount_card.dart`: display origins too
* `price_meta_product.dart`: now setting and displaying origins too
* `price_model.dart`: we now set origins too, and prepared code for labels when ready on the "prices" side
* `price_product_list_tile.dart`: now displaying origins too
* someone moved a file and that's not nice ;)
* explicit 1 line for autocomplete
* Edition improvements
* Sketch file
* Nutrition editor: the Next key is working again on Android
* Nutrition editor: tapping the title will force the focus on the TextField
* Explanation banner for the product name
* Bad examples with the wrong title
* Reorder header icons
* Oops… dark mode
* Dark mode x2
* Fix "Nesquik" typo
* With banner
* Remove the warning icon from the Help modal sheet (too ugly)
* Improved nutrition input
* Translate all TODOs
* Loading + error states
* Update labeler
* "Add" icon with the same size as "Help"
* Fix light/dark mode switch issue
* Button to a nutrient at the bottom
* Remove warning
* bugfixes_list
* Remove heroTag from search results
* Personalized lists: better header
* Lists: Ensure the pull to refresh works with non-scrollable listview
* Personalized search: Dismissible widget to take the full height
* Flutter Map: InkWell with the same border radius as the ClipRRect
* Language selector + ingredients text field
* Minor fix
* Outdated explanations
* Remove shadow from edit buttons
* Invert colors for Cancel/Save buttons in dark mode
* Format
* SafeArea for Edit Page
* KP improvements
(cherry picked from commit 9506642832d82356a8ab717de5d07e3273e73cfe)
* Use the correct variant of the SVG
* Improve normal text in dark mode
* Improvements for the photo gallery (and many many other changes)
* Make the indicator white (temporary?)
---------
Co-authored-by: Edouard Marquez <edouard@marquez.cool>
* Allow to reorder the action bar
* + vibrations
* +1 more
* Improve the haptic error pattern
* And some vibrations to modal actions
* Remove a visual glitch
* Update packages/smooth_app/lib/l10n/app_en.arb
* fix: Update app_en.arb
* Fix build issue
---------
Co-authored-by: Pierre Slamich <pierre@openfoodfacts.org>
Co-authored-by: Pierre Slamich <pierre.slamich@gmail.com>