9 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
63eef889bb feat: Contribute to your country link (#5874)
* feat: added the help improve OFF in your country tile on the contribute page

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

* fix: fixing comma

* feat: added country wiki class and a check to show the listtile

* Update packages/smooth_app/lib/pages/preferences/user_preferences_contribute.dart

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

* feat: satisfying pr requests

* feat: refactored userPreferences.countyCode to be a part of UserPreferenceContribute

* feat: adding map to country wiki links

* feat: adding country wiki link to user prefs

* feat: quick fix of adding the icon to the help improve country tile

* feat: format

* fix: organizing imports

* feat: make the help country links conditional

* fix: formatted code

* fix: deleting unused ports

* chore: formatted and added golden test

* chore: added setCountry to dialogs_test.dart

* chore: formatted code

---------

Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>
Co-authored-by: Pierre Slamich <pierre@openfoodfacts.org>
2025-02-14 09:33:18 +01:00
a8cfcd02ce fix: 5693 - able to run tasks without minimum duration wait (#5694)
* fix: 5693 - able to run tasks without minimum duration wait

Impacted files:
* `background_task_manager.dart`: made it possible to force an immediate run if possible
* `offline_tasks_page.dart`: force an immediate run if possible when clicking on the refresh button

* Added a call to BackgroundTaskManager.run related to prices

* Minor fix

* Wtf tests

* Ugly fix for mocking hive
2024-10-20 14:17:21 +02:00
642892e1b3 feat: 4510 - new "enroll in the beta" contribute item (#4938)
* feat: 4510 - new "enroll in the beta" contribute item

Impacted files:
* `app_en.arb`: added an "enroll in the beta" label.
* `app_store.dart`: new `getEnrollInBetaURL` method
* `apple_app_store.dart`: implements new `getEnrollInBetaURL` method
* `google_play.dart`: implements new `getEnrollInBetaURL` method
* `user_preferences_contribute.dart`: added an "enroll in the beta" button

* Fixes after tests failing

* feat: 4510 - new labels + dialog

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

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

* Update packages/smooth_app/lib/pages/preferences/user_preferences_contribute.dart

---------

Co-authored-by: Pierre Slamich <pierre.slamich@gmail.com>
2024-01-08 16:47:08 +01: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
7487b72af0 chore: Upgrade Matomo to 3.1 (#4000) 2023-07-16 18:49:07 +02:00
0363affc81 feat: AMOLED Dark Mode (#3703)
* ignored some generated files

* init amoled mode

* color scheme

* test updated for amoled

* added accent color picker

* localized accent color picker

* added color provider

* Dark Mode changed to Theme mode

* Map key iteration only

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

Co-authored-by: Aman Raj <57723319+AshAman999@users.noreply.github.com>

* removed external dep

* updated golden test

* added comments

* using shade fun

* color scheme localization

* color scheme localization

* added textContrast

* color contrast app settings

* merged upstream

* typo fix

* added color to DropDownMenuItems

* SnackBar text, contrast level

* text contrast change to pass WCAG2.1

* snackBar Color Change

---------

Co-authored-by: Aman Raj <57723319+AshAman999@users.noreply.github.com>
2023-03-09 18:19:39 +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
bc8a6fe7d9 chore: add golden tests and files for dialogs (#3190)
* added golden files and test for
contribute page dialogs

* removed un-nessary http mocking

* removed unused imports

* better readable test name desc
2022-10-25 17:59:35 +02:00