52 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
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
ad9c06eaf8 feat: OCR: Better explain why the photo is still loading (#5426)
* OCR: Better explain why the photo is loading

* Add missing file
2024-06-21 17:15:09 +02:00
1728eff579 Replace all MediaQuery.of(context).size with MediaQuery.sizeOf(context) (#5328) 2024-06-03 17:09:37 +02:00
d704b587fe feat: Added neutral action to Smooth Alert dialog and updated app review dialog in login page (#5086)
* Added neutral action and updated app review dialog

* Changed the button labels and removed the top button with two buttons below design

* Refactored the injecting small space logic to be correct

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

---------

Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>
2024-02-25 19:27:37 +01:00
6e1556844b If the access to the user gallery is denied, an error message is now shown (#4464) 2023-08-08 15:12:16 +02:00
7815266a2f feat: Add some consistency between dialogs in the profile (#4458)
* Add some consistency between dialogs in the profile

* Update goldens

* (Re) update goldens
2023-08-06 13:28:01 +02:00
a4998cd887 feat: Tiny UI tweaks for the product edition (#4456)
* UI tweaks on the product edition

* Some other tweaks
2023-08-06 13:27:42 +02:00
6fd6aa86cd Smooth Dialog: when there is just on button, ensure we have equal padding (#4443) 2023-08-05 17:28:27 +02:00
7f3bddf147 Responsive dialog when there is no product (#4315) 2023-08-03 14:33:11 +02:00
fe31fd9cdf feat: Ensure Country / Language / Nutrient picker look the same (#4389)
* Ensure Country / Language / Nutrient picker look the same

* Add a const constructor

* Some small improvements
2023-07-28 15:34:39 +02:00
d00f9a07e4 feat: User lists picker in a modal sheet (#4364)
* CW

* List picker with a modal sheet

* From the product page, we shouldn't be able to switch between lists

* Ensure everything is perfectly aligned
2023-07-24 10:39:28 +02:00
5a72a46fbf feat: Better support error when saving the picture locally (#4305) 2023-07-17 13:17:52 +02:00
b03f60b085 feat: Better support RTL languages (#4310) 2023-07-16 20:29:51 +02:00
452b30e8ed feat: Onboarding improvements (country picker + Authorize buttons) (#4291) 2023-07-13 09:17:45 +02:00
79aad8560d fix: Improvement for the dialog to create a new list, when there is none (#4296) 2023-07-13 09:12:50 +02:00
2cc6e130aa Improve the accessibility for the Edit product flow (#4197) 2023-06-20 10:27:31 +02:00
7a82d53fa6 Make all button bars in the product edition consistent (#4187) 2023-06-16 15:19:47 +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
ad7ac7732a refactor: Flutter v3.7.0 (#3642) 2023-01-31 22:39:07 +01:00
7e861f569e refactor: upgrade to off-dart 2.0.0 (#3495)
Impacted files:
* `paged_to_be_completed_product_query.dart`: renamed `State` as `ProductState`
* `paged_user_product_query.dart`: created local `UserSearchType` instead of deprecated off-dart `UserProductSearchType`; used `ProductSearchQueryConfiguration` instead of deprecated `UserProductSearchQueryConfiguration`
* `product_query.dart`: now that we use fully v3, we don't need the temporary field list for user-related queries with v2
* `pubspec.lock`: wtf
* `pubspec.yaml`: upgrade to off-dart 2.0.0
* `user_preferences_account.dart`: now using new local class `UserSearchType`
* and reduced all off-dart imports to a single `import 'package:openfoodfacts/openfoodfacts.dart';`
2023-01-02 16:10:52 +01:00
5f824c6127 fix: Edit page not accessible on hebrew (#3453)
Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>
2022-12-23 09:27:39 +01:00
779e8f4172 Vertical axis for permission dialog + small ui fixes (#2906) 2022-09-03 12:34:16 +02:00
1f72ce62ce feat: Add to list horizontal buttons (#2871)
* Add to list horizontal buttons

* Reorder members

* Dart format
2022-08-30 19:56:44 +02:00
394cf4cf18 fix: #1538 - refactoring of image cropper (#2858)
* fix: #1538 - refactoring of image cropper

Impacted files:
* `confirm_and_upload_picture.dart`: minor refactoring.
* `image_crop_page.dart`: rather heavy refactoring needed to move forward.

* fix: #1538 - refactoring of image cropper

Impacted files:
* `confirm_and_upload_picture.dart`: minor refactoring.
* `image_crop_page.dart`: rather heavy refactoring needed to move forward.

* fix: #1538 - refactoring of image cropper

Impacted files:
* `confirm_and_upload_picture.dart`: minor refactoring.
* `image_crop_page.dart`: rather heavy refactoring needed to move forward.

* fix: #1538 - refactoring of image cropper

Impacted files:
* `image_crop_page.dart`: vertical buttons for gallery/camera dialog
* `smooth_alert_dialog.dart`: fixed comment
2022-08-30 11:03:20 +02:00
ddb8bea405 feat: Horizontal buttons for Dialogs (#2626)
* Revert "Revert "feat: Smooth Dialog with an axis for buttons (#2587)" (#2608)"

This reverts commit 6b52473394b921126d71be3291902ad27aa03e62.

* Many fixes

* Small doc + Title & Cross in separated widgets

* Increase a little bit the line height to improve readability

Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>
2022-08-18 19:27:35 +02:00
6b52473394 Revert "feat: Smooth Dialog with an axis for buttons (#2587)" (#2608)
This reverts commit 4255a5faef1f611adfc299c56b0b033f096d9e38.
2022-07-15 19:17:58 +02:00
4255a5faef feat: Smooth Dialog with an axis for buttons (#2587)
* Smooth Dialog with an axis for the buttons

* Remove default axis value
2022-07-14 15:55:24 +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
52f9448de2 feat: Move all animations durations in a dedicated class (#2533)
* Move all animations durations in a dedicated class

* Move & rename file
2022-07-08 10:08:14 +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
ee82d91019 feat: Migration to Flutter 3.0 / Dart 2.17 (#2307)
* Migration to Flutter 3 / Dart 2.17 (enums migrated)

* Dart 2.17 (Super initializers)

* Remove all new super.key

* indice -> idx
2022-06-20 16:45:27 +02:00
1b70a91dfb fix: Pick image from file too (#2290)
* take images from camera as well + translations

* overflow fix on alert dialog buttons

* hide dialog for selection where already more

* translation and alignment

* formatted the code

* Removed comment

* Update pubspec.lock

* Missing import

Co-authored-by: Marvin Möltgen <39344769+M123-dev@users.noreply.github.com>
2022-06-19 13:40:55 +02:00
e288524adb fix: #1656 - simplified SmoothAlertDialog that always works (#2283)
Impacted files:
* `basic_test.dart`: refactored
* `country_selector.dart`: refactored with a single `Column`
* `nutrition_page_loaded.dart`: refactored with a single `Column`
* `Podfile.lock`: wtf
* `product_list_user_dialog_helper.dart`: refactored with a single `Column`
* `product_refresh.dart`: replaced neutral with negative button
* `smooth_alert_dialog.dart`: removed the `advanced` constructor and the `neutral` button; simplified the display and made it work for `Column` bodies.
2022-06-15 13:43:31 +02:00
a869b6611f feat: #2169 - new simple input page for "Labels" (#2202)
Impacted files:
* `app_en.arb`: added 5 translations
* `app_fr.arb`: added 5 translations
* `edit_product_page.dart`: added an action for "edit labels"; refactored
* `simple_input_page.dart`: renamed "label" as "term" to avoid confusion; translated; refactored
* `simple_input_page_helpers.dart`: implementation for "labels"; renamed "label" as "term"; translated
* `smooth_alert_dialog.dart`: minor refactoring
2022-06-07 14:43:28 +02:00
6fb61c17e4 feat: Update to new color scheme (#2028)
* feat: Update to new color scheme

* Update goldens

* Update packages/smooth_app/lib/themes/smooth_theme.dart

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

* Updated to new smaller color scheme

* Updated Goldens

* Some minor fixes

* Update pubspec.lock

* Update goldens

* Next fixes

* fix login page

* More fixes

* Even more fixes

* latest fixes with pierre

Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>
2022-06-02 19:02:08 +02:00
30df0acade fix: align the buttons to bottom (#2044) 2022-05-28 12:44:01 +02:00
1c3f3d542b fix: Visual issues (again) (#2018)
* About app dialog: OK button as positive / Licenses as negative

* Fix visual issues
2022-05-26 22:21:16 +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
df3c6a52a7 Fix a visual issue introduced in #1978 (#1982) 2022-05-25 13:00:33 +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
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
e8e7fb4fa2 fix: Add missing translations (#1572)
* Add missing translations

* Email content translation

* 2 hardcoded strings

* Fix categories tests not working anymore

* Add missing translation

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

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

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

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

Co-authored-by: Pierre Slamich <pierre@openfoodfacts.org>
2022-05-08 13:01:31 +02:00
1199c79b67 fix: #1518 - normal size for most alert dialogs (#1519)
Deleted file:
* `product_list_dialog_helper.dart`

Impacted files:
* `basic_test.dart`: refactored
* `loading_dialog.dart`: refactored
* `product_dialog_helper.dart`: refactored
* `smooth_alert_dialog.dart`: now constructors for simple and advanced effects
* `user_contribution_view.dart`: now explicitly using the "advanced" dialog
* `user_preferences_profile.dart`: refactored
* `user_preferences_settings.dart`: now explicitly using the "advanced" dialog
2022-04-08 17:53:09 +02:00
d1f82bde6a fix: Contributor Box made scrollable with flexible to small device sizes (#1485)
* Contributor Box made scrollable with flexible to small device sizes

* changes made with separated class with new file

* replaced import
2022-04-06 16:32:12 +02:00
06b3c16ff0 fix: Reuniformed AlertDialogs (#1361) 2022-03-28 16:48:04 +02:00
6df17e8302 fix: fixes for the UI rendering in the "Contributors" Smooth Alert box sheet (#1281)
* Bug:UI fixed and made it dynamic according to the device width.

* Bug:UI fixed and made it dynamic according to the device width.
2022-03-21 20:24:37 +01:00