23 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
e765a30800 fix: 6426 - remove items in comparisons from scan header (#6433) 2025-03-24 08:54:57 +01:00
ea1893deb8 chore: Minor UI changes (#6095)
* Minor UI changes

* Remove warning
2025-01-03 11:03:49 +01:00
33101fd9fd Force the color of the Scan buttons (#6084) 2024-12-30 08:11:30 +01:00
3655c3b300 feat: Scan cards share the same UI (#5866)
* Harmonized UI for scan cards

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

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

* Fix build issue

---------

Co-authored-by: Pierre Slamich <pierre.slamich@gmail.com>
2024-11-18 15:24:05 +01:00
40a8641b1b Improvements for material 3 (#5740) 2024-10-27 11:02:54 +01: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
6a2722f414 chore: Migration to Flutter 3.19 (#5154)
* Migration to Flutter 3.19.x

* Fix warnings about `(context).mounted`
2024-04-15 18:06:14 +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
e4a02f8d10 Scanner: when the compare mode is visible, ensure the visor is not covered by the header (#4229) 2023-06-25 10:57:32 +02:00
421661ca41 feat: The compare feature only accepts two existing products (#4139)
* The compare feature only accepts two existing products

* Update packages/smooth_app/lib/helpers/collections_helper.dart

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

---------

Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>
2023-06-15 12:24:12 +02:00
18ce3004e8 refactor: #920 - when relevant, switched to Navigator.push<void> (#2799)
Impacted files:
* `add_category_button.dart`: now `push<void>` (no expected returned value, no pop'ed value from `SimpleInputPage`)
* `add_ingredients_button.dart`: now `push<void>` (no expected returned value, no pop'ed value from `EditOcrPage`)
* `add_new_product_page.dart`: added `TODO`s about problematic returned values
* `add_nutrition_button.dart`: now `push<void>` (no expected returned value, no pop'ed value from `NutritionPageLoaded`)
* `edit_ingredients_page.dart`: now `pop`ing nothing, as nobody cares about the value
* `edit_product_page.dart`: now `push<void>` (no expected returned value, no pop'ed value from `AddBasicDetailsPage`, `EditOcrPage`, `NutritionPageLoaded`, `SimpleInputPage`); added a `TODO` about a problematic returned value
* `image_upload_card.dart`: added a `TODO` about a problematic returned value
* `login_page.dart`: added a `TODO` about a problematic returned value
* `new_product_page.dart` now `push<void>` (no expected returned value, no pop'ed value from `EditProductPage`)
* `product_image_gallery_view.dart`: added a `TODO` about a problematic returned value
* `product_list_page.dart`: now `push<void>` (no expected returned value, no pop'ed value from `PersonalizedRankingPage`)
* `product_title_card.dart`: now `push<void>` (no expected returned value, no pop'ed value from `AddBasicDetailsPage`)
* `question_page.dart`: now `push<void>` (no expected returned value, no pop'ed value from `LoginPage`)
* `scan_header.dart`: now `push<void>` (no expected returned value, no pop'ed value from `PersonalizedRankingPage`)
* `scan_product_card.dart`: now `push<void>` (no expected returned value, no pop'ed value from `ProductPage`)
* `smooth_product_card_found.dart`: now `push<void>` (no expected returned value, no pop'ed value from `ProductPage`)
* `smooth_product_card_not_found.dart`: added a `TODO` about a problematic returned value
* `summary_card.dart`: now `push<void>` (no expected returned value, no pop'ed value from `AddBasicDetailsPage`, `UserPreferencesPage`, `QuestionPage`, `KnowledgePanelPage)
2022-08-20 14:33:34 +02:00
bb48bea9fd Fix a small device layout issue (#2759) 2022-08-09 20:21:41 +02:00
115722b613 feat: #2396 - better memory management - load products only when needed (#2609)
Deleted files:
* `scan_page_helper.dart`: refactored as there was only a single small method there, with a lousy "ignore" management.
* `smooth_main_button.dart`: old redundant button that did not fit the latest UI

New files:
* `personalized_ranking_model.dart`: Model that computes the scores and sorts the barcodes accordingly.
* `product_model.dart`: Model for product database get and refresh.
* `scan_product_card_loader.dart`: Display of product for the scan page, after async load from local database.
* `tmp_matched_product_v2.dart`: to be merged into off-dart

Impacted files:
* `app_en.arb`: added a label for "refresh_with_new_preferences"
* `app_fr.arb`: added a label for "refresh_with_new_preferences"
* `continuous_scan_model.dart`: now we don't store Product and we let the product cards get the product from the local db if and only if needed
* `dao_product.dart`: minor refactoring
* `dao_product_list.dart`: now we don't deal with products anymore, just barcodes.
* `group_query_filter_view.dart`: removed deprecated `SmoothMainButton`
* `partial_product_list.dart`: now we don't deal with products anymore, just barcodes.
* `personalized_ranking_page.dart`: now uses new class `PersonalizedRankingModel` for better refresh and async product load; now using appropriate button with localized label; fixed dismiss action
* `product_list.dart`: now we don't deal with products anymore, just barcodes.
* `product_list_import_export.dart`: refactored
* `product_list_item_simple.dart`: now we `async`ly load the product from the local database, and keep it refreshed for every change; now based on new class `ProductModel`; added sentry error calls; typo fix
* `product_list_page.dart`: now we don't store Product and we let the product cards get the product from the local db if and only if needed
* `product_preferences.dart`: new method `getCompactView` used to know if something changed.
* `product_query_model.dart`: now we include the "category" process in the model, and we don't store products.
* `product_query_page.dart`: removed useless and inactive sliver effect and `Hero`; refactored
* `product_query_page_helper.dart`: removed bug generating `Hero`
* `scan_header.dart`: refactored from `scan_page_helper.dart` being removed and slightly modified
* `search_page.dart`: removed bug generating `Hero`
* `smooth_product_carousel.dart`: now we async'ly load product from local database, and don't store them in memory.
* `summary_card.dart`: removed bug generating `Hero`
* `up_to_date_product_provider.dart`: added timestamps for new method `needsRefresh`
* `user_preferences_account.dart`: removed bug generating `Hero`
2022-07-25 08:12:04 +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
dfff8ea196 perf: Prefer const border radius (#2432)
Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>
2022-07-02 16:04:26 +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
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
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
000c2bed99 fix: Scanner buttons not updated (#1140)
* fix: Scanner buttons not updated

* Refactor: Own file for ScanHeader
2022-02-18 17:21:39 +01:00