23 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
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
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
0ddd5c6538 chore: upgraded flutter_map to 6.0.1 (#4757)
* chore: upgraded flutter_map to 6.0.1

Impacted files:
* `add_new_product_page.dart`: matomo upgrade
* `analytics_helper.dart`: matomo upgrade
* `camera_scan_page.dart`: matomo upgrade
* `forgot_password_page.dart`: matomo upgrade
* `knowledge_panel_page.dart`: matomo upgrade
* `knowledge_panel_world_map_card.dart`: flutter_map upgrade
* `login_page.dart`: matomo upgrade
* `main.dart`: matomo upgrade
* `new_product_page.dart`: matomo upgrade
* `personalized_ranking_page.dart`: matomo upgrade
* `product_list_page.dart`: matomo upgrade
* `product_query_page.dart`: matomo upgrade
* `pubspec.lock`: wtf
* `pubspec.yaml`: upgraded flutter_map to 6.0.1 (+ domino effect)
* `question_page.dart`: matomo upgrade
* `sign_up_page.dart`: matomo upgrade
* `user_preferences_page.dart`: matomo upgrade

* chore: upgrade flutter_map to 6.0.1

Impacted file:
* `mocks.dart`: matomo upgrade

* chore: unit test fix

* pubspec upgrade
2023-11-17 12:50:35 +01:00
f87e257c84 fix: Let's try to fix a crash with a null variable in the CameraScannerPageState (#4713)
* Let's try to fix a crash in Sentry

* A call to `setState` was missing
2023-10-25 16:40:27 +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
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
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
63b65e6f79 fix: Stronger F-Droid analytics rules (#3902)
Co-authored-by: Cirrus CI <support@cirruslabs.org>
2023-04-24 19:43:34 +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
92e361e11e fix: Try/catch the exception that may be raised when changing the flash state (#3878) 2023-04-17 19:01:18 +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
f22cf52182 fix: 3816 - commented camerawesome (#3824)
Impacted files:
* `awesome_flash.dart`: commented everything
* `camera_scan_page.dart`: commented references to `camerawesome`
* `Info.plist`: wtf
* `Podfile.lock`: wtf
* `project.pbxproj`: wtf
* `pubspec.lock`: wtf
* `pubspec.yaml`: commented `camerawesome` and `google_mlkit_barcode_scanning`
* `smooth_barcode_scanner_awesome.dart`: commented everything
* `smooth_barcode_scanner_visor.dart`: commented everything
2023-03-29 23:01:28 +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
dd0d548413 chore: Revert "feat: 3585 - upgrade to flutter 3.7 (#3666)" (#3702)
* Revert "feat: 3585 - upgrade to flutter 3.7 (#3666)"

This reverts commit ad46236bdf77afea18b12cc69b3ee64a6752ee73.

* Update pubspec.yaml

* Update account_deletion_webview.dart
2023-02-14 09:38:09 +01:00
ad46236bdf feat: 3585 - upgrade to flutter 3.7 (#3666)
Impacted files:
* `account_deletion_webview.dart`: minor refactoring; could not test, unfortunately
* `background_task_badge.dart`: minor refactoring
* `camera_scan_page.dart`: minor refactoring
* `country_selector.dart`: minor refactoring
* `generated_plugin_registrant.cc`: wtf
* `generated_plugins.cmake`: wtf
* `GeneratedPluginRegistrant.swift`: wtf
* `Info.plist`: wtf
* `knowledge_panel_world_map_card.dart`: minor refactoring
* `network_config.dart`: minor refactoring
* `Podfile.lock`: wtf
* `product_query_page.dart`: minor refactoring
* `project.pbxproj`: wtf
* `pubspec.lock`: wtf
* `apple_app_store/pubspec.yaml`: to dart 2.19 without restriction for flutter
* `google_play/pubspec.yaml`: to dart 2.19 without restriction for flutter
* `app_store/shared/pubspec.yaml`: to dart 2.19 without restriction for flutter
* `uri_store/pubspec.yaml`: to dart 2.19 without restriction for flutter
* `data_importer/pubspec.yaml`: to dart 2.19 without restriction for flutter
* `data_importer_shared/pubspec.yaml`: to dart 2.19 without restriction for flutter
* `mlkit/pubspec.yaml`: to dart 2.19 without restriction for flutter
* `scanner/shared/pubspec.yaml`: to dart 2.19 without restriction for flutter
* `zxing/pubspec.yaml`: to dart 2.19 without restriction for flutter
* `smooth_app/pubspec.yaml`: to dart 2.19 without restriction for flutter; upgraded the versions
* `user_preferences_page_test.dart`: minor cheat - we need either to refactor with `launchUrl` or to fix `WebView`
2023-02-03 09:54:05 +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