-
Notifications
You must be signed in to change notification settings - Fork 3
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
Settings panel #73
Settings panel #73
Conversation
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.
Really nice. The only other thing is that when I started checking how to dynamically change between Bluetooth and USB repository, I looked into streaming_shared_preferences that extends shared_preferences. So unless we go for the solution where we automatically connect to the device instead of selecting it, we might have to swap for that to do dynamic changes. It allows you to subscribe to preferences and be notified of changes. They are very similar and changes should be minimal.
Co-authored-by: Anes Belfodil <[email protected]>
Co-authored-by: Anes Belfodil <[email protected]>
Co-authored-by: Anes Belfodil <[email protected]>
Co-authored-by: Anes Belfodil <[email protected]>
…obile/app-user-settings
such wow! good job! |
j'ai enlevé l'option du board d'acquisition parce que c'était plus nécessaire |
Pour le sexe alors? Aussi, si c'est le genre de widget que tu aimes j'aurais aussi un NumberInputDialog |
j'ai enlevé l'option du board d'acquisition parce que c'était plus nécessaire |
1e213f2
to
3f665f9
Compare
mobile/lib/src/infrastructure/settings_repository/settings_repository.dart
Outdated
Show resolved
Hide resolved
|
||
Settings( | ||
{this.age = 30, this.serverAddress = '0.0.0.0', this.sex = Sex.NotSet}) | ||
: assert(age != null || (age == null && age > 12 && age < 125)), |
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.
Please use contants like MAX_AGE, MIN_AGE.
Maybe use a factory constructor so you can throw custom exceptions that you could handle in the future, in place of assert statements.
Misc