GAM3RG33K / flutter_settings_screens

Settings Screen with Custom Shared Preference Interface
MIT License
176 stars 71 forks source link

TextInput: expose helperText and inputFormatters #94

Closed nyxkn closed 2 years ago

nyxkn commented 2 years ago

These seem to be very useful parameters. HelperText shows up next to the textfield popup and is great for documenting what the user should be inputting, without wasting space in the tile itself. InputFormatters allow even more control than validator functions and can be used to automatically filter unwanted characters so that they can't be typed altogether. The services.dart import is required for the inputformatters type.

Also adding errorMaxLines and helperMaxLines values so that these texts can wrap properly. The default otherwise is one line only and will cut off text if it doesn't fit in one line. 3 seems like a sane value but it could easily be higher. The popup will then expand vertically to fit more lines if required.