-
-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: 4513 - new "preferences search" page from dev mode #4640
feat: 4513 - new "preferences search" page from dev mode #4640
Conversation
Deleted files: * `user_preferences_camera_sound.dart` * `user_preferences_crash_reporting.dart` * `user_preferences_haptic_feedback.dart` * `user_preferences_send_anonymous.dart` New files: * `user_preferences_item.dart`: Item for preferences, with labels for pre-filtering and widget builder. * `user_preferences_search_page.dart`: Search page for preferences, with TextField filter. Impacted files: * `abstract_user_preferences.dart`: new `getLabels` method for filtering; children are now `UserPreferencesItem` for filtering; minor refactoring. * `user_preferences_account.dart`: children are now `UserPreferencesItem`; minor refactoring * `user_preferences_advanced_settings.dart`: added a static `UserPreferencesItem` getter * `user_preferences_attribute_group.dart`: children are now `UserPreferencesItem`; minor refactoring * `user_preferences_choose_accent_color.dart`: added a static `UserPreferencesItem` getter * `user_preferences_choose_app_theme.dart`: added a static `UserPreferencesItem` getter * `user_preferences_choose_text_color_contrast.dart`: added a static `UserPreferencesItem` getter * `user_preferences_connect.dart`: children are now `UserPreferencesItem`; minor refactoring * `user_preferences_contribute.dart`: children are now `UserPreferencesItem`; minor refactoring * `user_preferences_country_selector.dart`: added a static `UserPreferencesItem` getter * `user_preferences_dev_mode.dart`: children are now `UserPreferencesItem`; minor refactoring * `user_preferences_faq.dart`: children are now `UserPreferencesItem`; minor refactoring * `user_preferences_food.dart`: children are now `UserPreferencesItem`; minor refactoring * `user_preferences_image_source.dart`: added a static `UserPreferencesItem` getter * `user_preferences_language_selector.dart`: added a static `UserPreferencesItem` getter * `user_preferences_page.dart`: moved `getUserPreferences` to `PreferencePageType`; minor refactoring * `user_preferences_rate_us.dart`: added a static `UserPreferencesItem` getter * `user_preferences_settings.dart`: children are now `UserPreferencesItem`; minor refactoring * `user_preferences_share_with_friends.dart`: added a static `UserPreferencesItem` getter * `user_preferences_widgets.dart`: new classes `UserPreferencesItemSwitch` and `UserPreferencesItemTile`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting approach, could be very usefull in our very big nested settings
final ThemeData themeData = Theme.of(context); | ||
final ProductPreferences productPreferences = | ||
context.read<ProductPreferences>(); | ||
context.read<UserManagementProvider>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this have any use here
mainAxisAlignment: MainAxisAlignment.start, | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: <Widget>[ | ||
TextField( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should (if moved out of the dev mode) switch to the SmoothTextFormField
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should (if moved out of the dev mode) switch to the SmoothTextFormField
Of course the UI/UX should be redesigned once the concept is approved and the code moved beyond the dev mode.
Thank you @M123-dev for your review!
I cannot really picture what the final UI/UX will look like, and we definitely need all settings to be translated if we only access settings via text search. |
What
user_preferences_item.dart
anduser_preferences_search_page.dart
. The rest of the PR is just about preference pages that containUserPreferencesItem
s instead of mereWidget
s.Screenshot
Part of
Files
Deleted files:
user_preferences_camera_sound.dart
user_preferences_crash_reporting.dart
user_preferences_haptic_feedback.dart
user_preferences_send_anonymous.dart
New files:
user_preferences_item.dart
: Item for preferences, with labels for pre-filtering and widget builder.user_preferences_search_page.dart
: Search page for preferences, with TextField filter.Impacted files:
abstract_user_preferences.dart
: newgetLabels
method for filtering; children are nowUserPreferencesItem
for filtering; minor refactoring.user_preferences_account.dart
: children are nowUserPreferencesItem
; minor refactoringuser_preferences_advanced_settings.dart
: added a staticUserPreferencesItem
getteruser_preferences_attribute_group.dart
: children are nowUserPreferencesItem
; minor refactoringuser_preferences_choose_accent_color.dart
: added a staticUserPreferencesItem
getteruser_preferences_choose_app_theme.dart
: added a staticUserPreferencesItem
getteruser_preferences_choose_text_color_contrast.dart
: added a staticUserPreferencesItem
getteruser_preferences_connect.dart
: children are nowUserPreferencesItem
; minor refactoringuser_preferences_contribute.dart
: children are nowUserPreferencesItem
; minor refactoringuser_preferences_country_selector.dart
: added a staticUserPreferencesItem
getteruser_preferences_dev_mode.dart
: children are nowUserPreferencesItem
; minor refactoringuser_preferences_faq.dart
: children are nowUserPreferencesItem
; minor refactoringuser_preferences_food.dart
: children are nowUserPreferencesItem
; minor refactoringuser_preferences_image_source.dart
: added a staticUserPreferencesItem
getteruser_preferences_language_selector.dart
: added a staticUserPreferencesItem
getteruser_preferences_page.dart
: movedgetUserPreferences
toPreferencePageType
; minor refactoringuser_preferences_rate_us.dart
: added a staticUserPreferencesItem
getteruser_preferences_settings.dart
: children are nowUserPreferencesItem
; minor refactoringuser_preferences_share_with_friends.dart
: added a staticUserPreferencesItem
getteruser_preferences_widgets.dart
: new classesUserPreferencesItemSwitch
andUserPreferencesItemTile