label property

Widget? label
final

Optional widget that describes the input field.

When the input field is empty and unfocused, the label is displayed on top of the input field (i.e., at the same location on the screen where text may be entered in the input field). When the input field receives focus (or if the field is non-empty), the label moves above, either vertically adjacent to, or to the center of the input field.

Defaults to null.

Implementation

final Widget? label;