flutter textarea input code example

Example 1: flutter textarea input

TextField(
	keyboardType: TextInputType.multiline,
    textInputAction: TextInputAction.newline,
    minLines: 1,
    maxLines: 5,
  )

Example 2: how to enable multiline text form fields flutter

TextField(
  keyboardType: TextInputType.multiline,
  maxLines: null,
)

Example 3: flutter multiline text field

new TextField(
  keyboardType: TextInputType.multiline,
  maxLines: whatever,
)

Example 4: flutter text field

TextField(
  decoration: InputDecoration(
    border: InputBorder.none,
    hintText: 'Enter a search term'
  ),
);