265 Commits

Author SHA1 Message Date
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
9208f6612c fix: 6640 - removed misleading "unsupported barcode" scan card (#6659) 2025-06-20 10:01:30 +02:00
98659c8097 Support dark images for the tagline (#6641) 2025-06-10 10:17:59 +02:00
2b558dc03f UI improvements (#6581) 2025-05-06 10:22:30 +02:00
d1ba3f8ca6 fix: dark mode issue in feedback page (#6576)
* fix: dark mode issue in feedback page

* fix: dark mode issue in feedback page

* fix: dark mode issue in feedback page

* fix: dark mode issue in feedback page

* fix: dark mode issue in feedback page
2025-05-04 09:12:05 +02:00
e765a30800 fix: 6426 - remove items in comparisons from scan header (#6433) 2025-03-24 08:54:57 +01:00
ebe2af81b4 A valid product needs to have photos (otherwise, we consider it as new) (#6191) 2025-03-03 18:28:57 +01:00
8681098bd6 App review is back (#6367) 2025-02-11 11:36:53 +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
af13812821 Disable text selection on the scan card (#6133) 2025-01-06 20:22:22 +01:00
43d282a241 fix: 5 bugfixes (icons color, better network mgmt / Japanese…) (#6127)
* Fix the elevated button color

* Scan tagline : when there is an error, hide the image

* Better management of errors for the `ProductPicture`

* Force a loader for the gallery

* Fix Japanese issue with tables

* Update packages/smooth_app/lib/cards/product_cards/smooth_product_image.dart

Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>

* Force a color for Price buttons

---------

Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>
2025-01-06 08:52:08 +01:00
ea1893deb8 chore: Minor UI changes (#6095)
* Minor UI changes

* Remove warning
2025-01-03 11:03:49 +01:00
d24ca6ca6f When there's not enough space, make the tagline scrollable (#6093) 2024-12-31 12:45:29 +01:00
33101fd9fd Force the color of the Scan buttons (#6084) 2024-12-30 08:11:30 +01:00
6b56cf274b Improve the camera permission denied error message (#6077) 2024-12-29 15:20:31 +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
c8d5392b42 fix: Optimized version of the scan cards for small screens (#5928)
* Optimized version of the scan cards for small screens

* Fix some Rive animations

* Use a slideup transition from the carousel
2024-11-25 10:42:02 +01:00
f877ecefa4 fix: UI changes for the homepage (#5911)
* Some changes for the homepage

* Fix unused variable

* Fix a typo issue with small screens
2024-11-23 19:22:48 +01:00
785ee37b71 Optimized version for small screens (#5884) 2024-11-19 13:53:42 +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
7045e2ce6f Add a loading state to the tagline image (#5832) 2024-11-11 09:42:25 +01:00
0cc9e47c3f Visual improvements for the scan page (#5773) 2024-11-02 09:48:23 +01:00
40a8641b1b Improvements for material 3 (#5740) 2024-10-27 11:02:54 +01:00
a6569866d4 feat: Upgrade the Flutter version to 3.24 (#5613)
* Let's migrate the app to Flutter 3.24

* `openfoodfacts_flutter_lints` from the `main` branch

* A fix for `/// For the world view`
2024-09-26 16:48:01 +02:00
e1994556fc chore(deps): bump carousel_slider from 4.2.1 to 5.0.0 in /packages/smooth_app (#5590)
* chore(deps): bump carousel_slider in /packages/smooth_app

Bumps [carousel_slider](https://github.com/serenader2014/flutter_carousel_slider) from 4.2.1 to 5.0.0.
- [Release notes](https://github.com/serenader2014/flutter_carousel_slider/releases)
- [Changelog](https://github.com/serenader2014/flutter_carousel_slider/blob/master/CHANGELOG.md)
- [Commits](https://github.com/serenader2014/flutter_carousel_slider/commits)

---
updated-dependencies:
- dependency-name: carousel_slider
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Minor fix of breaking changes of carousel_slider

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Cirrus CI <support@cirruslabs.org>
2024-09-19 09:55:13 +02:00
79a6ff6900 chore(deps): bump audioplayers, package_info_plus and http in /packages/smooth_app (#5530)
* chore(deps): bump audioplayers, package_info_plus and http

Bumps [audioplayers](https://github.com/bluefireteam/audioplayers/tree/master/packages), [package_info_plus](https://github.com/fluttercommunity/plus_plugins/tree/main/packages/package_info_plus) and [http](https://github.com/dart-lang/http/tree/master/pkgs). These dependencies needed to be updated together.

Updates `audioplayers` from 5.2.1 to 6.0.0
- [Changelog](https://github.com/bluefireteam/audioplayers/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bluefireteam/audioplayers/commits/audioplayers-v6.0.0/packages)

Updates `package_info_plus` from 5.0.1 to 7.0.0
- [Release notes](https://github.com/fluttercommunity/plus_plugins/releases)
- [Commits](https://github.com/fluttercommunity/plus_plugins/commits/package_info_plus-v7.0.0/packages/package_info_plus)

Updates `http` from 1.2.0 to 1.2.2
- [Release notes](https://github.com/dart-lang/http/releases)
- [Commits](https://github.com/dart-lang/http/commits/http-v1.2.2/pkgs)

---
updated-dependencies:
- dependency-name: audioplayers
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: package_info_plus
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: http
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Minor fixes

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Cirrus CI <support@cirruslabs.org>
2024-08-12 18:04:43 +02:00
30ca6b64b2 feat: Improvements for the search experience (#5519)
* Improvements

* Fix typo

* One more typo
2024-08-07 17:33:51 +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
b2fbb75574 Allow the URL of a translated image to be null (#5446) 2024-07-04 15:30:05 +02:00
d2ac037b74 Revert "chore: Revert Flutter bump to 3.22 (#5463)" (#5468)
This reverts commit 1a9091c09d0ad4addf46e85b90bc9075749ce153.
2024-07-04 15:28:58 +02:00
1a9091c09d chore: Revert Flutter bump to 3.22 (#5463)
This reverts commit 9e211ca29c5caf33c5ca7401ab92235ccb81cb27.
2024-07-04 10:33:23 +02:00
9e211ca29c chore: Bump Flutter version to 3.22 (#5458)
* Bump Flutter version to 3.22

* Migrate Material properties
2024-07-04 09:10:34 +02:00
32cab47dc5 Second method to follow deep links with LaunchUrlHelper (#5450) 2024-06-28 11:07:49 +02:00
333b5acde6 chore: Tagline: minor UI changes (paddings) (#5440)
* Some UI changes (paddings) + matomo event

* Actually, tracking the link with Matomo is not needed
2024-06-24 19:20:23 +02:00
4deb0b42a4 fix: 2 bugfixes for the tagline (empty content + image in error) (#5421)
* If for some reason, there is no news, we shouldn't display the tagline at all

* If the image can't be loaded, we hide it
2024-06-20 18:58:26 +02:00
93d460cc23 Improve accessibility on the homepage (#5412) 2024-06-19 13:15:34 +02:00
a3e9bc24ec refactor: Rename tagline* to AppNews (#5377)
* Rename `tagline*` to `AppNews`

* Fix labeler path
2024-06-16 17:39:33 +02:00
35a4ab03c0 feat: prices - barcode reader for additional products (#5381)
New file:
* `price_scan_page.dart`: Page showing the camera feed and decoding the first barcode, for Prices.

Impacted files:
* `app_en.arb`: added 1 "barcode reader" label
* `app_fr.arb`: added 1 "barcode reader" label
* `camera_scan_page.dart`: minor refactoring
* `price_product_search_page.dart`: added a FAB towards the new barcode reader page
2024-06-15 17:23:04 +02:00
08071d273b feat: Custom domain + environment support for the TagLine (#5364)
* Support custom domain + env for the TagLine

* Update packages/smooth_app/lib/data_models/tagline/tagline_provider.dart

---------

Co-authored-by: Pierre Slamich <pierre.slamich@gmail.com>
2024-06-13 08:53:14 +02:00
b5b308c99d fix: ThemeProvider properly resync the theme (#5363)
* Fix theme internals

* Also fix the animation
2024-06-13 08:29:22 +02:00
41abf730fe feat: Tagline V3 (#5350)
* New JSON

* Tagline V3

* Refresh the tagline on language change

* Fix Lint errors

* Revert `SmoothScaffold` changes

* Filter news with startDate/endDate
2024-06-10 15:19:24 +02:00
5a95ca688a feat: 5195 - location search, as a preliminary step (#5274)
New files:
* `dao_osm_location.dart`: DAO about OSM locations.
* `loading_status.dart`: Common loading status.
* `location_list_supplier.dart`: Asynchronously loads locations.
* `location_map_page.dart`: Page that displays a map centered on a location.
* `location_query_model.dart`: Location query model.
* `location_query_page.dart`: Page that displays location results during and after download.
* `osm_location.dart`: Location as expected from OSM.
* `product_loading_status.dart`: Product loading status. Refactored from `product_list_item_simple.dart`
* `search_app_bar_title.dart`: Common search app bar title.
* `search_empty_screen.dart`: Common search empty screen.
* `search_helper.dart`: Common "text-field + history" search helper.
* `search_loading_screen.dart`: Common search loading screen.
* `search_location_helper.dart`: Search helper dedicated to location search.
* `search_location_model.dart`: Search location model.
* `search_location_preloaded_item.dart`: Location search preloaded list item, for locations historically selected.
* `search_preloaded_item.dart`: Common search preloaded item.
* `search_product_helper.dart`: Search helper dedicated to product search. Used to be in `search_page.dart`

Impacted files
* `app_en.arb`: added a "No location found" label
* `app_fr.arb`: added a "No location found" label
* `app_navigator.dart`: minor refactoring
* `dao_string_list.dart`: history key for new feature "previous location searches"
* `local_database.dart`: upgraded the version to take into account new class `DaoOsmLocation`
* `personalized_ranking_model.dart`: now using a common `LoadingStatus`
* `personalized_ranking_page.dart`: now using a common `LoadingStatus`
* `product_list_item_simple.dart`: now using a common `ProductLoadingStatus`
* `product_model.dart`: now using a common `ProductLoadingStatus`
* `product_price_item.dart`: added unrelated TODO comment
* `product_query_model.dart`: now using a common `LoadingStatus`
* `product_query_page.dart`: now using common `SearchLoadingScreen`, `SearchEmptyScreen` and `SearchAppBarTitle`
* `product_query_page_helper.dart`: removed useless `ProductQueryPageResult`; refactored `EditProductCallback` to `SearchQueryCallback` somewhere else
* `search_history_view.dart`: refactored with `SearchHelper` and preloaded items
* `search_page.dart`: refactored the actual search code to `SearchHelper`; added preloaded items; found a bug
* `smooth_product_carousel.dart`: minor refactoring
* `user_preferences_dev_mode.dart`: added a temporary access to location search; removed useless key
2024-05-21 18:45:38 +02:00
6a2722f414 chore: Migration to Flutter 3.19 (#5154)
* Migration to Flutter 3.19.x

* Fix warnings about `(context).mounted`
2024-04-15 18:06:14 +02:00
f57c0c00c7 fix: adjusting onTap call (#5113)
Co-authored-by: Gabriel Moraes <gmmoraes@Gabriels-Mac-mini.local>
2024-03-11 07:50:42 +01:00
be2453e572 fix: Light on the light issue in light mode on dark mode device (#5093)
* Fix the Light on light issue in light mode

* fix: light on the light issue in light mode on dark mode device

* fix: light on the light issue in light mode on dark mode device

* Discard the Changes from the theme file

* Discard the changes of code formatting,
2024-02-29 12:27:10 +01:00
6bf0a36998 If a search string only have digits BUT with spaces, we remove them (may be a barcode) (#5019) 2024-01-29 20:18:32 +01:00