Flutter Design Systems Galleries

Text area

Use a text area for a note that can span several lines. Give people room to see the surrounding sentences while they edit.

About this look Stint app Appliance gallery

Write a note

Write a delivery note. Press Enter to add another line and watch the line count change.

Flutter preview Open preview
label
Name that stays with the note.
onChanged
Recounts the lines when the note changes.
minLines
Height of the empty editing area, in lines.
maxLines
Maximum visible lines before the text scrolls.

Shared behaviour

  • Keyboard and focus. Tab into the note. Enter inserts a line break, and the arrow keys move the caret through the text.
  • Screen readers. The editable field has the name “Delivery note”. The count below it includes the lines separated by Enter.
  • Direction and type. The field uses the available width. Lines can wrap as the frame narrows or the type grows without changing the count.
Read the ui_core contract