Conversation
MouradLachhab
left a comment
There was a problem hiding this comment.
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 <abelfodil@users.noreply.github.com>
Co-authored-by: Anes Belfodil <abelfodil@users.noreply.github.com>
Co-authored-by: Anes Belfodil <abelfodil@users.noreply.github.com>
Co-authored-by: Anes Belfodil <abelfodil@users.noreply.github.com>
…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
|
|
||
| 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.
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