69 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
dda75e283e feat: Flutter 3.32 (#6665)
* Migration to Flutter 3.32

* Temporary ignore dart formatter issues
2025-06-23 09:56:00 +02:00
6b56cf274b Improve the camera permission denied error message (#6077) 2024-12-29 15:20:31 +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
0cc9e47c3f Visual improvements for the scan page (#5773) 2024-11-02 09:48:23 +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
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
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
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
a3e9bc24ec refactor: Rename tagline* to AppNews (#5377)
* Rename `tagline*` to `AppNews`

* Fix labeler path
2024-06-16 17:39:33 +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
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
78bc0962e7 fix: Made the notification bar of the scanner transluent (#4611) 2023-09-02 16:07:54 +02:00
ee9e20f365 A part of the app forced to clear the model… weird (#4517) 2023-08-13 11:49:53 +02:00
de837d35f8 fix: On iOS, the "beep" sound was silent (#4480)
* On iOS, the "beep" sound was silent

* Oops I forgot to commit the WAV file
2023-08-08 15:19:08 +02:00
78884a6ad2 feat: App review in the "scan card" (#4450)
* App review in the "scan card"

* Add a keep alive to prevent many requests

* Add a missing call to super (for the KeepAlive mixin)

* Don't really understand what happened with this file 🤨
2023-08-05 17:27:59 +02:00
29e2ec4504 The "beeeep" is back (#4436) 2023-08-04 11:59:05 +02:00
7abc0efc6c When there is no camera, show the search card in fullscreen (#4354) 2023-07-29 19:22:16 +02:00
9755e761af Ensure everything is well aligned between the visor and the caroussel (#4282) 2023-07-16 15:14:24 +02:00
097a905393 feat: Some improvements for the carousel (changing pages, a11n…) (#4225)
* Some improvements for the carousel (changing pages, a11n…)

* Translate the announcement in english + remove unused translations used by the old scanner

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

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

---------

Co-authored-by: Pierre Slamich <pierre.slamich@gmail.com>
2023-06-25 17:46:50 +02:00
409a85f1e8 fix: [iOS] Ensure the status bar is OK with the light theme (#4144)
* Ensure the status bar does have the right color on iOS

* Fix dart fmt
2023-06-14 18:33:42 +02:00
1734a20381 ci: Return to entrypoint based scanner (#3874)
* ci: Return to entrypoint based scanner

* Update basic_test.dart
2023-04-14 17:07:37 +02:00
5c959299bc feat: Camera awesome (#3790)
* feat: Working camera awesome feat

* First scanner impl

* Add debug title

* Update main_google_play.dart

* .

* fix: Flash

* Code review
2023-03-21 18:20:49 +01:00
08fd1349e6 feat: now we can switch the camera in the dev mode (#3784)
* dev: now we can switch the camera in the dev mode

* Update scan_page.dart

* fix
2023-03-20 17:26:31 +01:00
87d928039c feat: 3712 - new mlkit and zxing scanners on flutter 3.7 (#3767)
* feat/3712 - new mlkit and zxing scanners on flutter 3.7

New files:
* `smooth_barcode_scanner_mlkit.dart`: Barcode scanner based on MLKit.
* `smooth_barcode_scanner_mockup.dart`: Fake barcode scanner, for tests.
* `smooth_barcode_scanner_type.dart`: Barcode scanner types.
* `smooth_barcode_scanner_zxing.dart`: Barcode scanner based on ZXing.

Deleted files:
* `scanner`: removed folder
* `camera_controller.dart`
* `camera_image_cropper.dart`
* `camera_full_getter.dart`
* `camera_image_preview.dart`
* `camera_modes.dart`
* `lifecycle_aware_widget.dart`
* `lifecycle_manager.dart`
* `scan_flash_toggle.dart`
* `scan_visor.dart`
* `scanner_overlay.dart`
* `user_preferences_dialog_editor.dart`

Impacted files:
* `app_test.dart`: now uses new enum `SmoothBarcodeScannerType`
* `background_task_badge.dart`: now uses flutter 3.7 badge
* `basic_test.dart`: now uses new enum `SmoothBarcodeScannerType`
* `build.gradle`: upgraded kotlin to 1.8.0
* `camera_helper.dart`: simplified
* `camera_scan_page.dart`: simplified
* `constant_icons.dart`: added an adaptive "flip camera" icon
* `file_cache_manager_impl.dart`: minor 3.7 refactoring
* `goldens.dart`: minor 3.7 refactoring
* `labeler.yml`: removed references to delete files
* `main_fdroid.dart`: now uses new enum `SmoothBarcodeScannerType`
* `main_google_play.dart`: now uses new enum `SmoothBarcodeScannerType`
* `main_ios.dart`: now uses new enum `SmoothBarcodeScannerType`
* `network_config.dart`: minor 3.7 refactoring
* `new_product_page.dart`: minor 3.7 refactoring
* `onboarding_bottom_bar.dart`: minor 3.7 refactoring
* `pubspec.lock`: wtf
* `apple_app_store/pubspec.yaml`: minor 3.7 refactoring
* `google_play/pubspec.yaml`: minor 3.7 refactoring
* `shared/pubspec.yaml`: minor 3.7 refactoring
* `uri_store/pubspec.yaml`: minor 3.7 refactoring
* `data_importer/pubspec.yaml`: minor 3.7 refactoring
* `data_importer_shared/pubspec.yaml`: minor 3.7 refactoring
* `smooth_app/pubspec.yaml`: now includes mlkit and zxing scanners; minor 3.7 refactoring; removed now redundant `badge`; minor upgrades
* `scan_page.dart`: simplified
* `user_preferences.dart`: removed now useless methods
* `user_preferences_dev_mode.dart`: removed duration and scan parameter settings
* `user_preferences_settings.dart`: removed now useless parameter; minor 3.7 refactoring

* feat/3712 - new "no camera found" message

Impacted file:
* `camera_scan_page.dart`: new "no camera found" message

* fix github actions flutter version

* feat/3712 - localized "no camera found" message

Impacted files:
* `app_en.arb`: new label for "no camera found"
* `app_fr.arb`: new label for "no camera found"
* `camera_scan_page.dart`: localized "no camera found" message

---------

Co-authored-by: Marvin M <39344769+M123-dev@users.noreply.github.com>
2023-03-17 15:41:42 +01:00
dac8ec7de1 chore: MLKit Page renamed (#3364)
* Rename the MLKit Page to Camera Page

* Fix: incorrect imports
2022-11-27 11:21:34 +01:00
30d810f87e Onboarding: new permission screen (before the consent analytics) (#2962)
Co-authored-by: Pierre Slamich <pierre@openfoodfacts.org>
2022-09-07 20:40:45 +02:00
779e8f4172 Vertical axis for permission dialog + small ui fixes (#2906) 2022-09-03 12:34:16 +02:00
6fb09e5ec2 use adaptive progress Indicator (#2831) 2022-08-23 11:18:59 +02:00
b28e905d03 The permission workflow for the camera should now be OK (#2763) 2022-08-11 18:16:40 +02:00
9ebe5c849c feat: Remove a maximum of hardcoded sizes and move Padding to Directional ones (#2534)
* Remove a maximum of hardcoded sizes and move Padding to Directional ones

* Fix build issue

Co-authored-by: Pierre Slamich <pierre@openfoodfacts.org>
2022-07-13 14:58:02 +02:00
1e889df3df Force a light status bar on all screens + a SmoothScaffold now handles correctly the brightness (#2343) 2022-07-04 16:58:55 +02:00
5bbbc60b77 Ensure the permission request is only asked once (#2368) 2022-06-24 16:14:10 +02:00
ee0700d70d If a device doesn't have any camera, hide the visor + settings (#2317) 2022-06-20 08:46:40 +02:00
39b8fb5b6b The focus point is computed to the center of the visor Widget (#2226) 2022-06-08 21:30:56 +02:00
7b1bf234d6 fix: Visor position (#2178)
* Fix visor position

* Better implementation
2022-06-05 22:38:41 +02:00
6e7d6c7575 feat: Shadow around the visor (#2148)
* Append a shadow around the visor

* A few improvements

* Slight improvement
2022-06-04 10:19:24 +02:00
4b9457800e fix: Issues with dialogs & colors (#2002)
* Fix issues with dialogs & colors

* Another fix

* Fix: unused variable
2022-05-26 14:10:55 +02:00
818cd13979 feat: Harmonize app dialogs (#1978)
* Harmonize app dialogs

* Flat/text button for negative & neutral states
+ fix a missing image

* Remove unused SmoothActionButton implementation

* Fix build issues
2022-05-25 12:43:12 +02:00
8381b82803 fix: Custom layout for the scan page (#1908)
* Custom layout for the scan page

* Fix a small issue
2022-05-22 20:38:07 +02:00
360693c528 Remove ZXing dependency + dev pref (#1886) 2022-05-18 18:21:06 +02:00
c3b44aced2 fix: Flutter 3.0 fixes (#1814)
* fix: Flutter 3.0 fixes

* Workflows

* Update gradle

* Automated fixes

* Manual async gap fixes

* Fix merge conflict reverts

* Format

* qr_code_scanner fixes
2022-05-12 16:07:22 +02:00
c43ad920ed feat: #1501 - refactored user preferences files into a dedicated folders (#1812) 2022-05-11 08:22:34 +02:00
a9bab938ff fix: Make app name untranslatable (#1779)
* fix: Make app name untranslatable

* const
2022-05-09 15:13:42 +02:00
2a18366486 ContinuousScanModel injected twice in the Widget tree (#1767) 2022-05-06 14:11:43 +02:00
f11488e7b2 fix: Unable to view details of product after scanning (#1726)
* fix: Unable to view details of product after scanning

* moved the provider to main.dart file

* cross button changes

* removed extra instances of ContinuousScanModel()

* added provider to async init

* loaded at init

* improvization
2022-05-03 17:37:49 +02:00
35ce58f120 fix: 🐛 Set light mode on the scan page (#1676) 2022-04-28 15:55:53 +02:00
e2aa72d155 feat: If camera permission is denied, allow the user to approve it again (#1583)
* No need to store if the camera permission was denied once (the framework provides this info)

* Prepare layout for showing an error when the camera is not granted

* UI to ask for permission

* UI changes

* Revert "Merge branch 'develop' into camera_permission"

This reverts commit f7bf249fcf732d5756152dde25d0f8c1624b2819, reversing
changes made to 8b0adc564ad93009c069c49f553c098c0238a0db.

* Update app_en.arb

Co-authored-by: Pierre Slamich <pierre@openfoodfacts.org>
2022-04-17 21:21:17 +02:00