Flutter: TextField multiline without max lines (dynamic height)

 


Hi there, another notes again for Flutter, today I just want to share something about TextField widget.

during make an application when we faced with text input for description, notes, address or any field which required multiline we need to make text input can be adjust the dynamic height.

in Flutter the TextField widget provide `minLines` and `maxLines` to handle it, but if we want to make the text input can be adjust the height dynamically, we just need to set the `maxLines` to `null`.

you can find out in official documentation about it, but I just want to keep it in my blog as notes.

Reference : https://api.flutter.dev/flutter/material/TextField/maxLines.html



Komentar