A material design styled text input field.
True if the field is enabled, false otherwise. A disabled field has a dimmed appearance and wont accept user input.
The text field style.
The field's primary text and text wrapMode.
The label text is shown as a placeholder for the primary text when the field is empty, and shown as a label when the primary text is set.
The following example demonstrates the appearance of the label text for both field styles.
Helper text is shown directly below the text field, and can be used as a hint or to indicate an error.
When true, communicates to the user that there is an error in their input. This is often used in conjunction with helperText to explain the error.
The accent color, used for the colorful highlights on the text field.
The color used to indicate an error in the field, when the Material.TextField.errored property is set.
The background color of the text field. This is a style dependent value, and is transparent by default in the Outlined style.
The color to use to secondary labels and the outline color in the Outlined style.
The color to use for text and outlines when the field is disabled. This is a style dependent value.
The text field's accepted event.
As the text is edited, the text property will update with any changes. When the user finishes editing the text, the accepted event will fire. This happens when either the field loses focus, or the return or done keys are pressed.
These properties adjust the appearance and behavior of the keyboard shown for text entry into this text field on mobile devices.
The behavior of each property is detailed in the TextEdit reference.