TextFieldColors
Represents the colors of the input text, container, and content (including label, placeholder, leading and trailing icons) used in a text field in different states.
Parameters
the color used for the input text of this text field when focused
the color used for the input text of this text field when not focused
the color used for the input text of this text field when disabled
the color used for the input text of this text field when in error state
the container color for this text field when focused
the container color for this text field when not focused
the container color for this text field when disabled
the container color for this text field when in error state
the cursor color for this text field
the cursor color for this text field when in error state
the colors used when the input text of this text field is selected
the indicator color for this text field when focused
the indicator color for this text field when not focused
the indicator color for this text field when disabled
the indicator color for this text field when in error state
the leading icon color for this text field when focused
the leading icon color for this text field when not focused
the leading icon color for this text field when disabled
the leading icon color for this text field when in error state
the trailing icon color for this text field when focused
the trailing icon color for this text field when not focused
the trailing icon color for this text field when disabled
the trailing icon color for this text field when in error state
the label color for this text field when focused
the label color for this text field when not focused
the label color for this text field when disabled
the label color for this text field when in error state
the placeholder color for this text field when focused
the placeholder color for this text field when not focused
the placeholder color for this text field when disabled
the placeholder color for this text field when in error state
the supporting text color for this text field when focused
the supporting text color for this text field when not focused
the supporting text color for this text field when disabled
the supporting text color for this text field when in error state
the prefix color for this text field when focused
the prefix color for this text field when not focused
the prefix color for this text field when disabled
the prefix color for this text field when in error state
the suffix color for this text field when focused
the suffix color for this text field when not focused
the suffix color for this text field when disabled
the suffix color for this text field when in error state
Constructors
create an instance with arbitrary colors. See TextFieldDefaults.colors for the default colors used in TextField. See OutlinedTextFieldDefaults.colors for the default colors used in OutlinedTextField.
Properties
Functions
Represents the container color for this text field.
Returns a copy of this ChipColors, optionally overriding some of the values. This uses the Color.Unspecified to mean “use the value from the source”
Represents the color used for the cursor of this text field.
Represents the color used for the border indicator of this text field.
Represents the color used for the label of this text field.
Represents the color used for the leading icon of this text field.
Represents the color used for the placeholder of this text field.
Represents the color used for the prefix of this text field.
Represents the color used for the suffix of this text field.
Represents the colors used for the supporting text of this text field.
Represents the color used for the trailing icon of this text field.