-
-
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 - user preferences pages simple refactoring #4620
feat: 4513 - user preferences pages simple refactoring #4620
Conversation
New files: * `user_preferences_advanced_settings.dart`: used to be `_AdvancedSettings` in `user_preferences_settings.dart` * `user_preferences_camera_sound.dart`: used to be `_CameraPlayScanSoundSetting` in `user_preferences_settings.dart` * `user_preferences_choose_accent_color.dart`: used to be `_ChooseAccentColor` in `user_preferences_settings.dart` * `user_preferences_choose_app_theme.dart`: used to be more or less `_ChooseAppTheme` in `user_preferences_settings.dart` * `user_preferences_choose_text_color_contrast.dart`: used to be `_ChooseTextColorContrast` in `user_preferences_settings.dart` * `user_preferences_country_selector.dart`: used to be coded in `user_preferences_settings.dart` * `user_preferences_crash_reporting.dart`: used to be `_CrashReportingSetting` in `user_preferences_settings.dart` * `user_preferences_haptic_feedback.dart`: used to be `_HapticFeedbackSetting` in `user_preferences_settings.dart` * `user_preferences_image_source.dart`: used to be coded in `user_preferences_settings.dart` * `user_preferences_language_selector.dart`: used to be coded in `user_preferences_settings.dart` * `user_preferences_rate_us.dart`: used to be `_RateUs` in `user_preferences_settings.dart` * `user_preferences_send_anonymous.dart`: used to be `_SendAnonymousDataSetting` in `user_preferences_settings.dart` * `user_preferences_share_with_friends.dart`: used to be `_ShareWithFriends` in `user_preferences_settings.dart` Impacted files: * `abstract_user_preferences.dart`: minor refactoring * `preferences_page.dart`: minor refactoring * `user_preferences.dart`: minor refactoring * `user_preferences_account.dart`: removed `UserPreferencesSection` and `_UserPreferencesAccountSubTitleSignOut` for simplification * `user_preferences_attribute_group.dart`: refactored as not `AbstractUserPreferences` * `user_preferences_connect.dart`: minor refactoring * `user_preferences_contribute.dart`: minor refactoring * `user_preferences_dev_mode.dart`: minor refactoring * `user_preferences_faq.dart`: minor refactoring * `user_preferences_food.dart`: minor refactoring * `user_preferences_page.dart`: minor refactoring * `user_preferences_settings.dart`: file was too big - moved code to new files+classes
Codecov Report
@@ Coverage Diff @@
## develop #4620 +/- ##
===========================================
- Coverage 10.13% 10.03% -0.11%
===========================================
Files 299 312 +13
Lines 15692 15637 -55
===========================================
- Hits 1591 1569 -22
+ Misses 14101 14068 -33
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
I don't think it's a necessary change, but smaller files are a good idea and I am certain it'll help your refactoring. Thanks @monsieurtanuki 👍🏼
Thank you @M123-dev for your review! We do need it, and you'll see how in the next PR! 😉 |
What
user_preferences_settings.dart
that was too big a file.Part of
Files
New files:
user_preferences_advanced_settings.dart
: used to be_AdvancedSettings
inuser_preferences_settings.dart
user_preferences_camera_sound.dart
: used to be_CameraPlayScanSoundSetting
inuser_preferences_settings.dart
user_preferences_choose_accent_color.dart
: used to be_ChooseAccentColor
inuser_preferences_settings.dart
user_preferences_choose_app_theme.dart
: used to be more or less_ChooseAppTheme
inuser_preferences_settings.dart
user_preferences_choose_text_color_contrast.dart
: used to be_ChooseTextColorContrast
inuser_preferences_settings.dart
user_preferences_country_selector.dart
: used to be coded inuser_preferences_settings.dart
user_preferences_crash_reporting.dart
: used to be_CrashReportingSetting
inuser_preferences_settings.dart
user_preferences_haptic_feedback.dart
: used to be_HapticFeedbackSetting
inuser_preferences_settings.dart
user_preferences_image_source.dart
: used to be coded inuser_preferences_settings.dart
user_preferences_language_selector.dart
: used to be coded inuser_preferences_settings.dart
user_preferences_rate_us.dart
: used to be_RateUs
inuser_preferences_settings.dart
user_preferences_send_anonymous.dart
: used to be_SendAnonymousDataSetting
inuser_preferences_settings.dart
user_preferences_share_with_friends.dart
: used to be_ShareWithFriends
inuser_preferences_settings.dart
Impacted files:
abstract_user_preferences.dart
: minor refactoringpreferences_page.dart
: minor refactoringuser_preferences.dart
: minor refactoringuser_preferences_account.dart
: removedUserPreferencesSection
and_UserPreferencesAccountSubTitleSignOut
for simplificationuser_preferences_attribute_group.dart
: refactored as notAbstractUserPreferences
user_preferences_connect.dart
: minor refactoringuser_preferences_contribute.dart
: minor refactoringuser_preferences_dev_mode.dart
: minor refactoringuser_preferences_faq.dart
: minor refactoringuser_preferences_food.dart
: minor refactoringuser_preferences_page.dart
: minor refactoringuser_preferences_settings.dart
: file was too big - moved code to new files+classes