20 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
b44a5f546c feat: Many improvements for the photo gallery (#5895)
* Improvements for the photo gallery (and many many other changes)

* Make the indicator white (temporary?)

---------

Co-authored-by: Edouard Marquez <edouard@marquez.cool>
2024-11-23 12:45:50 +01:00
11b1212d4f refactor: 5075 - explicit localization of OFF world links (#5076)
* refactor: 5075 - explicit localization of OFF world links

Impacted files:
* `external_page.dart`: removed useless parameter
* `knowledge_panel_text_card.dart`: removed useless parameter
* `knowledge_panel_world_map_card.dart`: removed useless parameter
* `launch_url_helper.dart`: removed useless parameter; removed redundant method
* `loading_dialog.dart`: removed useless parameter
* `login_page.dart`: removed useless parameter
* `new_product_page.dart`: removed useless parameter
* `smooth_html_widget.dart`: removed useless parameter
* `smooth_product_carousel.dart`: removed useless parameter
* `user_preferences_account.dart`: explicitly localized the OFF world subdomain
* `user_preferences_connect.dart`: removed useless parameter
* `user_preferences_contribute.dart`: removed useless parameter
* `user_preferences_faq.dart`: explicitly localized the OFF world subdomain; removed useless parameter
* `website_card.dart`: removed useless parameter

* Update user_preferences_faq.dart

Removed one parameter.
2024-02-20 06:55:46 +01:00
542c4c21c6 feat: 4836 - clickable link to "open new issue" when relevant (#4875)
* feat: 4836 - clickable link to "open new issue" when relevant

Impacted files:
* `app_en.arb`: added an "open new issue if relevant" label.
* `app_fr.arb`: added an "open new issue if relevant" label.
* `loading_dialog.dart`: added an optional `shouldOpenNewIssue` parameter with appropriate display
* `pubspec.lock`: wtf
* `pubspec.yaml`: upgraded openfoodfacts to 3.2.1
* `sign_up_page.dart`: use the new `shouldOpenNewIssue` parameter when server error

* lint fixes
2023-12-12 20:17:16 +01:00
86f22001b8 feat: format sign_up_errors to normal texts instead of HTML format (#3692)
* feat: format sign_up_errors to normal texts instead of HTML format

- added proper error messages possible errors we could get.
- wrapped a error message text widget with padding widget in `loading_dialog.dart`
so the it looks not conjusted.
- added required texts in `app_en.arb`.

- Impacted_files
    - `lib/generic_lib/loading_dialog.dart`
    - `lib/pages/user_management/sign_up_page.dart`
    - `lib/l10n/app_en.arb`

* edit typo in  `packages/smooth_app/lib/l10n/app_en.arb`

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

---------

Co-authored-by: Aman Raj <57723319+AshAman999@users.noreply.github.com>
2023-02-16 17:43:15 +01:00
e3564e53a4 refactor: Make smooth_app a module (also called step 1) (#3101)
* Make smooth_app a module (also called step 1)

Android impl is OK.
Still have to check for iOS and tests

* Fix scan sound not working

* Fix ci/pub_upgrade.sh issues

* Fix tests

* Some doc

* Fix build actions

* Fix iOS build

* Fix warnings

* Fix Flutter analyze

* Fix typo

* The CI needs at least one test

Co-authored-by: Marvin Möltgen <39344769+M123-dev@users.noreply.github.com>
2022-10-13 18:33:14 +02:00
6fb09e5ec2 use adaptive progress Indicator (#2831) 2022-08-23 11:18:59 +02:00
d698ffbf68 Ensure the initial loading dialog auto-closes on timeout (#2240) 2022-06-10 08:00:56 +02:00
5c0fc06923 feat: #2049 - added error picture (#2050)
New file:
* `error.svg`

Impacted file:
* `loading_dialog.svg`: added error picture
2022-05-28 18:33:13 +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
20a9da0d1c fix: #1697 - checking hasError instead of hasData in FutureBuilder (#1705)
Impacted file:
* `loading_dialog.dart`: checking hasError instead of hasData - hasData is not reliable as data can be void or null.
2022-04-29 15:47:22 +02:00
c203f3a5ec fix: #1472 Stop on boarding next button to get spammed (#1611)
* make dismissible dialogs

* make the onboarding dialog not dismissble
2022-04-22 19:20:26 +02:00
f67180785d fix: #1352 - robotoff insight card shows permanently (#1574)
* fix: #1395 - show newly added product in carousel

* fix: #1395 - refactoring unused import

* fix: #1395 - refactoring make variable private

* fix: #1352 - robotoff card shows permanently

* fix: #1352 - codereview refactoring

* fix: #1352 - check fix

* fix: #1352 - pretest check fix

* fix: #1352 - codereview fix

Co-authored-by: Pierre Slamich <pierre@openfoodfacts.org>
2022-04-21 10:58:52 +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
852ae7be02 fix: Translate hardcoded sentences (#1473)
* Translate hardcoded sentences

* Extract all AppLocalizations.of(context) into variables
2022-04-03 18:28:11 +02:00
b275e8e499 Revert "fix: Pop loading dialog before build is finished (#1182)" (#1432)
This reverts commit d7b36bd7ea899cabbe87c0f3f1da7f96f2e93fec.
2022-03-31 21:13:03 +02:00
d7b36bd7ea fix: Pop loading dialog before build is finished (#1182)
* fix: Pop loading dialog before build is finished

* Update image_crop_page.dart
2022-03-04 18:22:18 +01:00
0d61134375 General radius throughout the app (#1179)
* Added design const

* ROUNDED_RADIUS

* General radius throughout the app

* Update smooth_main_button.dart

* .all instead of .circular
2022-03-03 21:25:46 +01:00