indicatorLine
fun Modifier.indicatorLine(enabled: Boolean, isError: Boolean, interactionSource: InteractionSource, colors: TextFieldColors, focusedIndicatorLineThickness: Dp = FocusedIndicatorThickness, unfocusedIndicatorLineThickness: Dp = UnfocusedIndicatorThickness): Modifier
A modifier to draw a default bottom indicator line for TextField. You can apply it to a BasicTextField or to DecorationBox to create a custom text field based on the styling of a Material filled text field.
Consider using Container, which automatically applies this modifier as well as other text field container styling.
Parameters
enabled
whether the text field is enabled
isError
whether the text field's current value is in error
interactionSource
the InteractionSource of the text field. Used to determine if the text field is in focus or not
colors
TextFieldColors used to resolve colors of the text field
focusedIndicatorLineThickness
thickness of the indicator line when the text field is focused
unfocusedIndicatorLineThickness
thickness of the indicator line when the text field is not focused