27 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
85c13502d2 Migration to Flutter 3.27 (#6076)
Co-authored-by: Pierre Slamich <pierre@openfoodfacts.org>
2024-12-29 15:20:05 +01:00
f02da85c4d Custom nav bar (#5900) 2024-11-23 19:21:35 +01:00
40a8641b1b Improvements for material 3 (#5740) 2024-10-27 11:02:54 +01:00
a3e9bc24ec refactor: Rename tagline* to AppNews (#5377)
* Rename `tagline*` to `AppNews`

* Fix labeler path
2024-06-16 17:39:33 +02:00
bccdf1c5ce chore: Migration to Flutter 3.16 (#4917)
* Migration to Flutter 3.16

* Dart format

---------

Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>
2024-01-09 12:02:00 +01:00
eae3602dcb Ensure that we can change tabs between the users lists and the scanner (#4498) 2023-08-09 16:15:47 +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
a6cdcaf9c1 Rework how the carousel is managed (#4403) 2023-07-31 17:14:09 +02:00
cac58a2084 feat: 4041 - renamed "history" bottom item as "lists", w/ access to other lists (#4277) 2023-07-12 18:53:41 +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
d716a56f47 feat: Only load the minimum tabs on startup (#4115)
* Improve the startup of the app, when loading only the current tab

* Fix a Lint issue (a variable with an underscore)
2023-06-10 17:09:40 +02:00
e9236a43a8 feat: 3657 - blue banner on bottom end when in "TEST ENV" (#3660)
Impacted file:
* `page_manager.dart`: blue banner on bottom end when in "TEST ENV"
2023-01-30 21:50:46 +01:00
4ff4953e0c fix: 3602 - pending background task back to dev mode; better wording (#3603)
Impacted files:
* `background_task_badge.dart`: slightly modified the position as we're not using it in the same conditions
* `offline_tasks_page.dart`: better wording for "refresh later"
* `page_manager.dart`: remove the badge on "profile" icon about background tasks
* `Podfile.lock`: wtf
* `user_preferences_dev_mode.dart`: put back the access to the pending background task page
* `user_preferences_page.dart`: removed the access to the pending background task page
2023-01-20 13:44:22 +01:00
e5e6eab087 feat: 3565 - badge on bottom bar about background tasks and access to list (#3567)
* feat: 3565 - badge on bottom bar about background tasks and access to list

Impacted files:
* `app_en.arb`: added 9 labels related to background tasks
* `background_task_manager.dart`: added an error/status for each task; removed the concept of "blocked" task manager
* `offline_tasks_page.dart`: localized and added error labels
* `page_manager.dart`: added a badge on bottom bar about pending background tasks
* `pubspec.lock`: wtf
* `pubspec.yaml`: added a dependency to `badges`
* `user_preferences_dev_mode.dart`: removed the access to the pending background task page
* `user_preferences_page.dart`: added a direct access to the pending background task page

* feat: 3565 - badge on bottom bar about background tasks and access to list

New file:
* `background_task_badge.dart`: Badge about pending background tasks.

Impacted files:
* `app_en.arb`: added 1 label about subtitle, edited the label about title
* `page_manager.dart`: now using new class `BackgroundTaskBadge`
* `user_preferences_page.dart`: added a subtitle and a badge for background tasks

* feat: 3565 - refreshed goldens test

* feat: 3565 - golden tests

Impacted files:
* `background_task_badge.dart`: refactored
* `background_task_manager.dart`: refactored
* `dao_string_list.dart`: added comments
* `local_database.dart`: added a method to be mocked
* `local_database_mock.dart`: overrode a method
* `offline_tasks_page.dart`: refactored
* `user_preferences_page-dark.png`: goldens
* `user_preferences_page-light.png`: goldens
* `user_preferences_page_test.dart`: added a reference to `LocalDatabase`

* feat: 3565 - golden tests

Impacted files:
* `background_task_badge.dart`: refactored
* `background_task_manager.dart`: refactored
* `dao_string_list.dart`: added comments
* `local_database.dart`: added a method to be mocked
* `local_database_mock.dart`: overrode a method
* `offline_tasks_page.dart`: refactored
* `user_preferences_page-dark.png`: goldens
* `user_preferences_page-light.png`: goldens
* `user_preferences_page_test.dart`: added a reference to `LocalDatabase`
2023-01-11 17:18:57 +01:00
4eb4df363f feat: #2167 refresh product sub knowledge panel (#2421) 2022-06-29 17:14:09 +02:00
2790dfb0d3 fix: #1314 switch to scanner from empty list (#2347)
* fix: #1314 switch to scanner from empty list

* fix: #1314 switch to scanner
even it is not first route of current tab
2022-06-23 15:30:10 +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
97ee0ac855 Fix issues with Camera (once again!) (#1986)
@see PR for explanations
2022-05-26 18:03:05 +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
e08e8131b4 fix: #1139 - carousel spinning issues (#1604) 2022-04-25 17:11:25 +02:00
7bf48b0200 feat: #1034 - tap to open search card (#1502) 2022-04-07 10:25:09 +02:00
ec49b9686b fix: Switched unselected item color according to theme (#1493) 2022-04-05 13:04:29 +02:00
fbecbcb360 fix: DarkMode NavigationBar color (#1430) 2022-03-31 21:19:43 +02:00
ddef61aa3b translation: Added some missing strings + devided strings into sections (#746)
* Delete organization_page.dart

* Removed unnecessary translations

* Update app_en.arb

* Sorted and divided into sections

* Added descriptions

* Added new Strings

* const
2021-12-23 12:06:07 +01:00
ca3739ec71 feat: #681 Stateful tabs (#703)
* feat: first working stateful tab

* feat: enum instead of String

* Update tab_navigator.dart

* feat: Working camera disable for other tabs

* fix: #640 stop camera when navigating further in the stack

* doc + null safety

* fix: activating scanner when rebuilding from ground up

* Updated goldens

The navbar got removed from the images because it is now not directly added by the pages anymore

* doc:

* Minor changes

* fix: Updating product with multiple navigators

* Minor fixes

* Simplification

* Simplification

* Simplification

* Update main.dart

* Update product_list_page.dart

Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>
2021-12-11 12:54:01 +01:00