* Language selector + ingredients text field
* Minor fix
* Outdated explanations
* Remove shadow from edit buttons
* Invert colors for Cancel/Save buttons in dark mode
* Format
* SafeArea for Edit Page
* UI improvements for the edit mode
* Better website input
* Some comments + minor fixes
* Add missing bottom space
* Fix page padding
* Help is better embedded
* Change ingredients instructions
* feat: 3297 - added an "add pics" button to the "edit origins" widget
Impacted files:
* `app_en.arb`: added label for "add origin pics"
* `app_fr.arb`: added label for "add origin pics"
* `simple_input_page_helpers.dart`: added an "extra widget" for simple inputs, and implemented it for "origins" with an "add photo" button; minor refactoring on `getIcon`
* `simple_input_widget.dart`: minor refactoring
* feat: 3297 - added extra buttons for emb and labels
Impacted files:
* `app_en.arb`: added labels for "add pics" buttons (emb and labels)
* `app_fr.arb`: added labels for "add pics" buttons (emb and labels)
* `simple_input_page_helpers.dart`: added extra buttons for emb and labels
* `smooth_large_button_with_icon.dart`: minor UI fix
* Hunger games: better loading view + support for error & reloading + each state is a dedicated Widget
* Explicitly say we want the async package (it's a transitive one)
* feat: 4058 - new UI for "add product"
TODO:
* dark mode
* localization
* facultative ecoscore fields
Impacted files:
* `add_new_product_page.dart`: score titles and subtitles; no more blue background; score on one line; leading (1) and (2) icons; deactivated button
* `add_simple_input_button.dart`: minor refactoring
* `edit_product_page.dart`: minor refactoring
* `simple_input_page_helpers.dart`: new method `showEditPage` from previous code
* `smooth_large_button_with_icon.dart`: refactored with `backgroundColor`, `foregroundColor` and `trailing` parameters
* feat: 4058 - after review
Impacted files:
* `add_new_product_page.dart`: dark mode; images first; titles and subtitles for nutriscore and ecoscore
* `app_en.arb`: titles and subtitles for nutriscore and ecoscore
* `app_fr.arb`: titles and subtitles for nutriscore and ecoscore
* 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>
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`
* 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>
* Dev mode to change the post frame callback
* Dialog editor extracted in a dedicated file + some doc
Co-authored-by: Pierre Slamich <pierre@openfoodfacts.org>
* Overflow of the button when taking a front photo in French removed
* formatted
* added confirm_button_lable and appbar
* description removed
* added appbar titles
* formatted
Impacted files:
* `smooth_main_button.dart`: added a `TODO` about probable deleting of this class.
* `social_handle_view.dart`: moved there "slack" and "email" contact options; refactored
* `user_preferences_settings.dart`: removed the "support" (slack or email) button
* made changes for getting theme from shared pref
* constants and methods added
* ui changes for the selecting themeMode
* check dark theme with platform brightness
* removed unnessary fields and imports
* used conext wherever nessacry
* temp fix for showing systemDefault on ui
* formatted the code
* ran flutter format .
* removed unused dark theme prefs
* pulled the changes
* removed themeprovider from wherever un-necessary
* solve merge conflicts
* create single utility method to check Darktheme
* formatted the code
* added todo for translation
* used isDarkMode function throughout the code
* deleted scrshots from test/pages/failures
* call provider to get theme data
* fix: Mock data for screenshot tests
* Update next_button.dart
* Update next_button.dart
Co-authored-by: M123-dev <marvinmoel05@gmail.com>
Co-authored-by: Marvin M <39344769+M123-dev@users.noreply.github.com>