192 Commits

Author SHA1 Message Date
0dee79f834 Color of the tabbar overflow (#6791) 2025-07-28 10:59:51 +02:00
72ec278689 feat: Redesign of the list of prices (#6716)
* Redesign of the list of prices

* Fix

* Revert the iOS config
2025-07-07 12:27:58 +02:00
df7d9d73b3 feat: Indicator color for Health and Environment tabs (#6715)
* Indicator color for Health and Environment tabs

* One missing file
2025-07-06 15:59:09 +02:00
692610cf6f Bump to flutter_lints 6.0.0 (#6713) 2025-07-06 12:01:44 +02:00
e3bc40fdf3 chore: Migration to Dart 3.8 (#6668)
* Migration to Dart 3.8

* New GA

* Fix dartdoc
2025-06-23 18:14:17 +02:00
dda75e283e feat: Flutter 3.32 (#6665)
* Migration to Flutter 3.32

* Temporary ignore dart formatter issues
2025-06-23 09:56:00 +02:00
9db5c5ef9e feat: 5553 - add prices for category products (#6552)
* 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
2025-06-12 18:13:26 +02:00
db036a4c4f fix: New UI for the food preferences (#6466)
Co-authored-by: chetanr25 <1ds22ai010@dsce.edu.com>
Co-authored-by: Edouard Marquez <g123k@users.noreply.github.com>
Co-authored-by: Edouard Marquez <animatrix30@gmail.com>
2025-05-16 10:46:29 +02:00
6450b6d3cd chore: UI/UX for Robotoff suggestions improved (#6585)
* CW

* Iteration
2025-05-07 17:38:47 +02:00
2b558dc03f UI improvements (#6581) 2025-05-06 10:22:30 +02:00
e93f0692c4 feat: Added Robotoff nutrition extraction to nutrition edit page (#6366)
* Add robotoff nutrition extraction to nutrition edit page

* feat: Enhance nutrition extraction UI with loading indicators and improved nutrient handling

* feat: Add localized messages for nutrient extraction actions and results

* feat: Track robotoff nutrition extraction events and update UI components

* Removed duplicated translation entries

* feat: Refactor analytics tracking for Robotoff nutrition events
2025-03-02 14:47:52 +01:00
d0861c8394 Enable the swipe back gesture + may exit for OCR page (#6364) 2025-02-14 17:38:33 +01:00
67539c17f3 Suggestions for countries (#6344) 2025-02-05 16:05:29 +01:00
8af3cc8876 feat: Help text for all fields (#6324)
* Explanations for brands & quantity

* Traceability codes

* Add missing fields

* fix Typo

* Tesco -> Carrefour

* Fix for single texts
2025-02-05 10:25:48 +01:00
8913ac85b6 InteractiveViewer with double tap to zoom in/out (#6318) 2025-02-03 17:27:46 +01:00
cdf637d960 fix: Product edition UI improvements (#6320)
* 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
2025-02-03 17:26:56 +01:00
61585caadd feat: Edit product page with product type + footer (#6313)
* Edit product page with product type + footer

* Revert background_task_image

* Haptic feedback for barcode copy

* Fix a regression with TopBar2
2025-01-30 16:31:31 +01:00
74fe8560be feat: Multi-lingual input for product name + help banner (#6286)
* 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)
2025-01-27 08:01:05 +01:00
4890b1bb76 Improvements for nutrition facts input (#6270) 2025-01-24 16:05:19 +01:00
8324456818 feat: Improved nutrition input (#6261)
* 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
2025-01-21 19:20:48 +01:00
104b30972b Portion calculator detached from nutrition facts (#6240) 2025-01-19 12:16:17 +01:00
4e8209d4e7 feat: Same layout between country/language pickers (settings) (#6231)
* Use the same layout between the country and language picker (in the settings)

* Add missing type
2025-01-19 12:14:19 +01:00
a49f82d11d Top Bar takes all screen height (#6220) 2025-01-16 21:26:43 +01:00
29bc10768f fix: Fix issues with the menu on lists (#6202)
* 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
2025-01-14 09:49:45 +01:00
1083cac901 Add new product: header from V2 + bugfix (#6200) 2025-01-13 19:36:10 +01:00
995cb1b73b feat: Folksonomy Editor (updated UI, modal sheet…) (#6194)
* Taxonomy UI

* Italic hint style

* Remove dead code
2025-01-13 14:17:59 +01:00
23288dfc44 feat: Less annoying floating spam (#6190)
* Less annoying floating spam

* Ooops, remove that test, Edouard

* No message for pictures

* Better edit product page banner
2025-01-13 14:17:00 +01:00
863aa76e62 fix: Language selector + ingredients (text field + outdated) (#6170)
* 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
2025-01-10 09:56:44 +01:00
019e319384 feat: New UI for history/search lists (#6161)
* Change the UI of history/search list items

* Update goldens
2025-01-09 16:08:37 +01:00
5ddb5127ec New UI for ingredients (#6156) 2025-01-08 13:38:50 +01:00
70ca39367d Add the upload indicator to the edit page (#6157) 2025-01-08 13:38:10 +01:00
d3893675d5 fix: KP UI improvements (font size/font height…) (#6155)
* KP improvements

(cherry picked from commit 9506642832d82356a8ab717de5d07e3273e73cfe)

* Use the correct variant of the SVG

* Improve normal text in dark mode
2025-01-08 13:37:31 +01:00
e419e74585 feat: Ingredients edition with tabs (#6115)
* Ingredients edition with tabs

* Fix typos

* ImageField shouldn't be hardcoded
2025-01-04 09:10:51 +01:00
85c13502d2 Migration to Flutter 3.27 (#6076)
Co-authored-by: Pierre Slamich <pierre@openfoodfacts.org>
2024-12-29 15:20:05 +01:00
43fe60afbd fix: Improvements for small screens (#6036)
* Small screens

* Add a missing condition

* Remove warning
2024-12-12 18:04:28 +01:00
8bf8299716 fix: Improvements for devices with text scale multipliers (#5995) 2024-12-04 21:31:26 +01:00
47b6ee38ab fix: Image gallery language not selectable (+ too long AppBar title (#5968)
* Ensure the AppBar title is on a single line when there is a subtitle

* Fix: impossible to add a new language

* Fix build error
2024-11-30 19:50:44 +01:00
57e13ea164 feat: Product page: notify when there are pending operations (#5947)
* Product page: notify when there are pending operations

* Fix warning
2024-11-27 22:51:51 +01:00
4750ff0dd0 Fix a warning on iOS (#5950)
Co-authored-by: Edouard Marquez <edouard@marquez.cool>
2024-11-27 18:12:29 +01:00
4cf7e0a066 Nutrition page: owner fields in a banner + pick quantity from the product (#5922)
Co-authored-by: Pierre Slamich <pierre@openfoodfacts.org>
2024-11-26 19:16:36 +01:00
f02da85c4d Custom nav bar (#5900) 2024-11-23 19:21:35 +01:00
b44a5f546c feat: Many improvements for the photo gallery (#5895)
* Improvements for the photo gallery (and many many other changes)

* Make the indicator white (temporary?)

---------

Co-authored-by: Edouard Marquez <edouard@marquez.cool>
2024-11-23 12:45:50 +01:00
4f92db3560 A custom Switch Widget (#5886) 2024-11-21 13:15:57 +01:00
3655c3b300 feat: Scan cards share the same UI (#5866)
* Harmonized UI for scan cards

* Update packages/smooth_app/lib/l10n/app_en.arb

Co-authored-by: Pierre Slamich <pierre.slamich@gmail.com>

* Fix build issue

---------

Co-authored-by: Pierre Slamich <pierre.slamich@gmail.com>
2024-11-18 15:24:05 +01:00
2bffec147e Photo gallery with tabs (#5872) 2024-11-18 13:24:40 +01:00
c102a0edd0 feat: Basic details: explanations about the producer are in a b… (#5870)
* Basic details: producer explanation is now on a banner

* Tiny fix
2024-11-18 13:24:30 +01:00
b5e7cb2f09 Same bottom bar with buttons accross screens (#5844) 2024-11-14 13:45:36 +01:00
9eba6ae3be feat: UI Improvements for the photo gallery (#5852)
* Improve the photo gallery UI

* ClipRrect needed

* Improve the photo gallery UI

* ClipRrect needed

---------

Co-authored-by: Edouard Marquez <edouard@marquez.cool>
2024-11-14 11:16:23 +01:00
d6446baeb9 feat: Allow to reorder the action bar (#5826)
* 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>
2024-11-11 19:23:22 +01:00
054ac0d6c2 fix: Misc visual improvements (#5829)
* Visual improvements

* Center all score scards
2024-11-11 11:30:30 +01:00