12 Commits

Author SHA1 Message Date
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
1573d32949 feat: Country selector redesign (#5483)
* Redesign of the country selector

* CW

* Search filter

* Fix Lint warning

* Small improvements
2024-07-20 23:17:45 +02:00
bbf84d17d9 feat: Step-by-step fast-track (#4698)
* Product Info Design Changed

* Product Design Page splitted

* Back Button Added

* Product info page fullscreen, and Back button Added

* Made Review Changes

* used the double format + trailing commas + removed hardcode values

* Trailling comma change

* Theme.of(Context) cached, added trailiing commas, Mediaquery.sizeof() used

* Print Removed and Colorsceme is now under build function

* Text style Edited with copywith()

* Text style Edited with copywith()

---------

Co-authored-by: Pierre Slamich <pierre@openfoodfacts.org>
2023-11-15 19:08:46 +01:00
b08dc608fe feat: #2671 - product lists - downloads products when not in local database (#2673)
* product lists - downloads products when not in local database
* added "refresh product" button on "error card"

Impacted files:
* `attribute_button.dart`: unrelated minor refactoring
* `design_constants.dart`: unrelated minor refactoring
* `onboarding_bottom_bar.dart`: unrelated minor refactoring
* `product_list_item_simple.dart`: added a "refresh product" button on "error card"; different card for "loading" and "downloading"; refactored
* `product_model.dart`: now we try to download the product if for some unexpected reason it's not in the local database; added a callable `download` method
* `smooth_product_card_template.dart`: added parameters `barcode` and `error` for more flexibility; added optional "action button"; refactored
2022-08-01 08:44:05 +02:00
a50ef8b6af feat: #1894 - switch to MatchedProductV2 (#1922)
Removed file:
* `smooth_matched_product.dart`: no more tap dancing about lenient and strong mode

Impacted files:
* `app_en.arb`: added 12 translations, removed 9 deprecated translations
* `app_fr.arb`: added 12 translations, removed 9 translations
* `design_constants.dart`: added a new grey color
* `personalized_ranking_page.dart`: switched to `MatchedProductV2`
* `Podfile.lock`: wtf
* `product_compatibility_helper.dart`: switched to `MatchedProductV2`
* `pubspec.yaml`: upgraded to off-dart 1.17.0 in order to get `MatchedProductV2`
* `smooth_it_model.dart`: switched to `MatchedProductV2`
* `smooth_product_card_found.dart`: switched to `MatchedProductV2`
* `summary_card.dart`: switched to `MatchedProductV2`; minor fix around foreground color
* `user_preferences_dev_mode.dart`: no more tap dancing about lenient and strong mode
2022-05-23 18:45:22 +02:00
a9bab938ff fix: Make app name untranslatable (#1779)
* fix: Make app name untranslatable

* const
2022-05-09 15:13:42 +02:00
b88f686a31 fix: color issue in light mode on the top summary bar of the scan card (#1634)
* fix: color issue in light mode

* dynamic selection of color on dark mode

* different methods for light and dark mode

Co-authored-by: Pierre Slamich <pierre@openfoodfacts.org>
2022-05-08 12:17:57 +02:00
21253c15db feat: #960 - changed the attribute/importance preference display. (#1590)
Impacted files:
* `attribute_button.dart`: changed the whole display.
* `design_constants.dart`: added constants for the default icon size and the minimum target size (according to goldens).
* `product_preferences.dart`: added the downgrading of "very important" to "important".
* `pubspec.lock`: wtf
* `user_preferences_page-blue-dark.png`: impacted by new display.
* `user_preferences_page-blue-light.png`: impacted by new display.
* `user_preferences_page-brown-dark.png`: impacted by new display.
* `user_preferences_page-brown-light.png`: impacted by new display.
* `user_preferences_page-green-dark.png`: impacted by new display.
* `user_preferences_page-green-light.png`: impacted by new display.
2022-05-04 17:00:30 +02:00
93f790c488 fix: Product remove cross is too small (#1718) 2022-04-30 17:45:46 +02:00
c5cf03b045 fix: Transportation Component Icon and title color is not compatible (#1494)
* chore(develop): release 1.0.0

* fix: Transportation Component Icon and title color is not compatible with background color

* removed extra variable

* chore(develop): release 1.1.0

* remoed additional variable

* removed additional files

* added CHANGELOG.md file

* added set for dark mode

* color design fixes

* removed unused code

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-04-09 20:22:52 +02:00
e7df9e53e6 fix: Colors of generic widgets replaced with globalized constants for colors (#1268)
* new colors added

* colors replaced with constants

* colors replaced with constants

* colors replaced with constants

* colors moved to design_constants.dart

* empty attribute helper deleted

* imports updated

* screenshots updated

Co-authored-by: Gayangi Seneviratne <sgayangi@gmail.com>
2022-03-20 16:47:25 +01:00
0d61134375 General radius throughout the app (#1179)
* Added design const

* ROUNDED_RADIUS

* General radius throughout the app

* Update smooth_main_button.dart

* .all instead of .circular
2022-03-03 21:25:46 +01:00