Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get multi-line Text in Flutter

Tags:

flutter

dart

Demo

How can I achieve the multi-Line view on Text and Multi-Line TextField that can auto size the container at the bottom.

Edit:And align them properly

like image 258
PrimeNexes Avatar asked Feb 04 '23 01:02

PrimeNexes


1 Answers

You have this in the following question: Is there a way to dynamically change the Flutter TextField's maxLines?

Set this on your code:

new TextField(
      maxLines: null,
      keyboardType: TextInputType.multiline,
);
like image 129
Alberto Sáez Vela Avatar answered Feb 08 '23 17:02

Alberto Sáez Vela