24 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
2b558dc03f UI improvements (#6581) 2025-05-06 10:22:30 +02:00
47421d1b38 Hide the custom URL field if we use the PROD (#6307) 2025-01-30 10:27:27 +01:00
4cef8f04e7 fix: 6281 LateError: LateInitializationError (#6287)
* Multi-lingual input for product name

* Fix LateError: LateInitializationError
2025-01-26 12:35:24 +01:00
a32fde1bd0 fix: Harmonization between modal sheets (#5875)
* Harmonization between modal sheets

* Add a missing const
2024-11-21 13:16:16 +01:00
b1005cebd8 feat: Some enhancements for the Bottom Sheet (#5803)
* Enhance Smooth Bottom Sheet

* Fix

* Remove user_picture_source_select translation
2024-11-07 14:41:57 +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
274d797d8b Dev mode for app news: custom URI + manual refresh (#5416) 2024-06-20 17:26:29 +02:00
f4463054ca Dev mode with sections + reordered (#5372) 2024-06-14 18:40:30 +02:00
1096948f0d feat: 4513 - new "preferences search" page from dev mode (#4640)
* feat: 4513 - new "preferences search page" from dev mode

Deleted files:
* `user_preferences_camera_sound.dart`
* `user_preferences_crash_reporting.dart`
* `user_preferences_haptic_feedback.dart`
* `user_preferences_send_anonymous.dart`

New files:
* `user_preferences_item.dart`: Item for preferences, with labels for pre-filtering and widget builder.
* `user_preferences_search_page.dart`: Search page for preferences, with TextField filter.

Impacted files:
* `abstract_user_preferences.dart`: new `getLabels` method for filtering; children are now `UserPreferencesItem` for filtering; minor refactoring.
* `user_preferences_account.dart`: children are now `UserPreferencesItem`; minor refactoring
* `user_preferences_advanced_settings.dart`: added a static `UserPreferencesItem` getter
* `user_preferences_attribute_group.dart`: children are now `UserPreferencesItem`; minor refactoring
* `user_preferences_choose_accent_color.dart`: added a static `UserPreferencesItem` getter
* `user_preferences_choose_app_theme.dart`: added a static `UserPreferencesItem` getter
* `user_preferences_choose_text_color_contrast.dart`: added a static `UserPreferencesItem` getter
* `user_preferences_connect.dart`: children are now `UserPreferencesItem`; minor refactoring
* `user_preferences_contribute.dart`: children are now `UserPreferencesItem`; minor refactoring
* `user_preferences_country_selector.dart`: added a static `UserPreferencesItem` getter
* `user_preferences_dev_mode.dart`: children are now `UserPreferencesItem`; minor refactoring
* `user_preferences_faq.dart`: children are now `UserPreferencesItem`; minor refactoring
* `user_preferences_food.dart`: children are now `UserPreferencesItem`; minor refactoring
* `user_preferences_image_source.dart`: added a static `UserPreferencesItem` getter
* `user_preferences_language_selector.dart`: added a static `UserPreferencesItem` getter
* `user_preferences_page.dart`: moved `getUserPreferences` to `PreferencePageType`; minor refactoring
* `user_preferences_rate_us.dart`: added a static `UserPreferencesItem` getter
* `user_preferences_settings.dart`: children are now `UserPreferencesItem`; minor refactoring
* `user_preferences_share_with_friends.dart`: added a static `UserPreferencesItem` getter
* `user_preferences_widgets.dart`: new classes `UserPreferencesItemSwitch` and `UserPreferencesItemTile`

* Update packages/smooth_app/lib/pages/preferences/user_preferences_page.dart
2023-09-19 08:40:25 +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
7f81b3dad7 Ensure native settings / rate app / share app entries look the same (#4388) 2023-07-29 19:19:22 +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
ef15cab269 feat: Settings now use Modal Sheets 🤩 (#4307) 2023-07-22 17:31:15 +02:00
75dd24e6e9 feat: Some updates to make the app work again on macOS (#4309) 2023-07-15 08:07:46 +02:00
b88c45fd85 fix: 2987 - The section header are smaller and not as color flashy as the titles of the individual settings. (#3696)
* changing font size of settings tab

* fixed : The section header are smaller and not as color flashy as the titles of the individual settings.

* Added changes to user_preferences_widgets.dart

* made changes inside copyWith and made it dynamic according to brightness

* Modified Header line in user_preferences_widgets.dart

* Apply suggestions from code review

* use same color but larger text

---------

Co-authored-by: Pierre Slamich <pierre.slamich@gmail.com>
Co-authored-by: Aman Raj <57723319+AshAman999@users.noreply.github.com>
Co-authored-by: Aman Raj <amanpie9@gmail.com>
2023-05-19 18:27:26 +02:00
7abb9b9bd3 fix: visual inconsistency in app_settings (#3818) 2023-04-08 15:09:52 +02:00
ad7ac7732a refactor: Flutter v3.7.0 (#3642) 2023-01-31 22:39:07 +01: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
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
3e1084b09c New scan algorithm for Android devices (#2265) 2022-06-13 20:10:33 +02:00
aedd8391b7 Add the user id (or email) to the profile (#1849) 2022-05-25 19:39:27 +02:00