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';`
* product lists - downloads products when not in local database
* added "refresh product" button on "error card"
Impacted files:
* `attribute_button.dart`: unrelated minor refactoring
* `design_constants.dart`: unrelated minor refactoring
* `onboarding_bottom_bar.dart`: unrelated minor refactoring
* `product_list_item_simple.dart`: added a "refresh product" button on "error card"; different card for "loading" and "downloading"; refactored
* `product_model.dart`: now we try to download the product if for some unexpected reason it's not in the local database; added a callable `download` method
* `smooth_product_card_template.dart`: added parameters `barcode` and `error` for more flexibility; added optional "action button"; refactored
Impacted files:
* `attribute_button.dart`: 2 lines (instead of 1) for "importance", radio button on top, smaller title style, info on the right, minimum target size
* `user_preferences_page-blue-dark.png`: golden refresh
* `user_preferences_page-blue-light.png`: golden refresh
* `user_preferences_page-brown-dark.png`: golden refresh
* `user_preferences_page-brown-light.png`: golden refresh
* `user_preferences_page-green-dark.png`: golden refresh
* `user_preferences_page-green-light.png`: golden refresh
Impacted files:
* `attribute_button.dart`: changed the whole display.
* `design_constants.dart`: added constants for the default icon size and the minimum target size (according to goldens).
* `product_preferences.dart`: added the downgrading of "very important" to "important".
* `pubspec.lock`: wtf
* `user_preferences_page-blue-dark.png`: impacted by new display.
* `user_preferences_page-blue-light.png`: impacted by new display.
* `user_preferences_page-brown-dark.png`: impacted by new display.
* `user_preferences_page-brown-light.png`: impacted by new display.
* `user_preferences_page-green-dark.png`: impacted by new display.
* `user_preferences_page-green-light.png`: impacted by new display.
Impacted files:
* `attribute_button.dart`: now the downgrade from "very important" to "important" is done from the preference manager itself
* `init_attribute_groups_en.json`: minor change due to data refresh
* `product_preferences.dart`: now we get the default importances from the reference itself; now we downgrade here "very important" to "important"
* `smooth_matched_product.dart`: minor refactoring
* `user_preferences.dart`: minor refactoring
Deleted files:
* `attribute_dialog.dart`
* `important.svg`
* `mandatory.svg`
Impacted files:
* `abstract_user_preferences.dart`: aligns the title of the header with the expand/collapse icon, and with a compact mode
* `attribute_button.dart`: removed the attribute dialog and put a button instead
* `attribute_helper.dart`: removed was not relevant anymore, and there's not much left!
* `user_preferences_attribute_group.dart`: different text style and compact title, no more reordering
* `user_preferences_page-blue-dark.png`: golden refresh
* `user_preferences_page-blue-light.png`: golden refresh
* `user_preferences_page-brown-dark.png`: golden refresh
* `user_preferences_page-brown-light.png`: golden refresh
* `user_preferences_page-green-dark.png`: golden refresh
* `user_preferences_page-green-light.png`: golden refresh
New files:
* `attribute_dialog.dart`: Vertical list of radio buttons used to set the importance of an attribute.
* `attribute_helper.dart`: Common values and methods for attribute display
Impacted files:
* `attribute_button.dart`: refactored by moving code to new files `attribute_dialog.dart` and `attribute_helper.dart`
* `user_preferences_page.dart`: minor refactoring
Deleted file:
* `very_important.svg`
Impacted files:
* `attribute_button.dart`: removed "very important" as a possibility and downgraded it to "important"
* `mandatory.svg`: used to be "!!!", now just "!!" is enough
* `product_compatibility_helper.dart`: downgraded the "very important" weight to the "important" weight value
* `product_preferences.dart`: the default attributes are now reset to "important" (instead of "very important")
This fixes a number of lint warnings by removing redundant imports.
No changes in functionality or logic, just removing redundant imports.
Bumped up the analysis checks by making infos and warnings fatal.