Does anyone have a idea about how to create multi-line text field to a like noteBook page?
like this
CodePudding user response:
If you want your TextField be adapted to the user input then do this:
TextField(
keyboardType: TextInputType.multiline,
minLines: 1,//Normal textInputField will be displayed
maxLines: 5,// when user presses enter it will adapt to it
);
here you can set the max lines to whatever you want and you are good to go.
CodePudding user response:
TextField(
keyboardType: TextInputType.multiline,
maxLines: null,
)