Home > Enterprise >  How to design Multiple line Textfield to look like notebook in flutter
How to design Multiple line Textfield to look like notebook in flutter

Time:09-05


Does anyone have a idea about how to create multi-line text field to a like noteBook page?

like this

notebook page like 'design to achive

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,
)
  • Related