15 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
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
93d460cc23 Improve accessibility on the homepage (#5412) 2024-06-19 13:15:34 +02:00
46b6faa508 feat: Camera Visor: force icons to always be white (#4340) 2023-07-21 01:47:46 +02:00
9755e761af Ensure everything is well aligned between the visor and the caroussel (#4282) 2023-07-16 15:14:24 +02:00
e4a02f8d10 Scanner: when the compare mode is visible, ensure the visor is not covered by the header (#4229) 2023-06-25 10:57:32 +02:00
9dd41983c1 When the app is resumed, if the camera isn't visible, we need to manually pause the feed (#4129) 2023-06-14 14:16:27 +02:00
882c7fb2b8 feat: Add labels for camera selection and flash (#4119)
* Add labels for camera selection and flash

* Add missing params
2023-06-10 21:46:04 +02:00
f7e42c762b chore: Shared common scanner (#3883)
* First movement

* devcotainer

* Lint fixes

* Shared visor

* Final moves

* Final lint fixes

* Empty widget, moved scan header

* Update scanner_ml_kit.dart

---------

Co-authored-by: Marvin Moeltgen
2023-04-18 21:05:28 +02: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
b72a8b0635 Black screen fix (#3352) 2022-11-26 15:53:59 +01:00
a67a2c5928 Fix for Controller disposed (#3351) 2022-11-26 12:32:55 +01:00
c72242aa6e feat: Zxing implementation (#3252)
* Zxing impl

* Remove unused dependency

* Update packages/scanner/zxing/android/src/main/kotlin/org/openfoodfacts/scanner_zxing/ZXingUtils.kt

Co-authored-by: VaiTon <eyadlorenzo@gmail.com>

* Update packages/scanner/zxing/.gitignore

Co-authored-by: VaiTon <eyadlorenzo@gmail.com>

* Update packages/scanner/zxing/android/src/main/kotlin/org/openfoodfacts/scanner_zxing/ScannerZxingPlugin.kt

Co-authored-by: VaiTon <eyadlorenzo@gmail.com>

Co-authored-by: VaiTon <eyadlorenzo@gmail.com>
2022-11-02 15:45:50 +01:00
c27767df4e feat: MLKit as a dependency (#3193)
* MLKit as a dependency

* Fix tests

* Add IntelliJ/Android build configurations

* IJ config: Rename folders

* Dynamically add the right dependency on app/pubspec.yaml

(cherry picked from commit 15b5243cab764d40e303ac9db9f3eda0b7caec03)

* Ad all VSCode configs

* Enable MLKit dependency for GitHub actions
2022-10-27 18:33:14 +02:00