TextFieldBehavior class abstract final

What Compose's TextField sets in code (behavior.yaml, verified at the pin).

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

affixPadding → const Dp
The gap between a prefix or suffix and the input (PrefixSuffixTextPadding). (TextFieldImpl.kt line 2244.)
cutoutPadding → const Dp
The gap the outline leaves on each side of a cut-out label (OutlinedTextFieldInnerPadding). (OutlinedTextField.kt line 594.)
fadeMotion → const ExpressiveMotionKey
The spring the placeholder fades on (but for the two slow legs), the prefix and suffix fade on, and every colour changes on (label, container, indicator, outline). (TextFieldImpl.kt line 2076.)
indicatorWidthMotion → const ExpressiveMotionKey
The spring the filled indicator and the outline thicken and thin on as focus comes and goes. (TextFieldImpl.kt line 2133.)
labelHeightEasingX1 → const double
The first control point's x of the easing the inside label's height allowance follows (EasingEmphasizedAccelerateCubicBezier). (MotionTokens.kt line 44.)
labelHeightEasingX2 → const double
The second control point's x of the easing the inside label's height allowance follows (EasingEmphasizedAccelerateCubicBezier). (MotionTokens.kt line 44.)
labelHeightEasingY1 → const double
The first control point's y of the easing the inside label's height allowance follows (EasingEmphasizedAccelerateCubicBezier). (MotionTokens.kt line 44.)
labelHeightEasingY2 → const double
The second control point's y of the easing the inside label's height allowance follows (EasingEmphasizedAccelerateCubicBezier). (MotionTokens.kt line 44.)
labelMotion → const ExpressiveMotionKey
The spring the label moves and resizes on between expanded and minimized. (TextFieldImpl.kt line 2037.)
labelVerticalPadding → const Dp
A filled field with its label inside: from the top edge to the minimized label, and from the input to the bottom edge (TextFieldWithLabelVerticalPadding). (TextField.kt line 843.)
minFocusedLabelLineHeight → const Dp
The minimized label's smallest height (MinFocusedLabelLineHeight). (TextFieldImpl.kt line 2248.)
minHeight → const Dp
The smallest height of a text field, supporting text included (TextFieldDefaults.MinHeight and OutlinedTextFieldDefaults.MinHeight). (TextFieldDefaults.kt line 83.)
minSupportingTextLineHeight → const Dp
The supporting text's smallest height (MinSupportingTextLineHeight). (TextFieldImpl.kt line 2250.)
minTextLineHeight → const Dp
The input's, placeholder's and affixes' smallest height, and the expanded label's (MinTextLineHeight). (TextFieldImpl.kt line 2246.)
minWidth → const Dp
The smallest width of a text field (TextFieldDefaults.MinWidth and OutlinedTextFieldDefaults.MinWidth). (TextFieldDefaults.kt line 89.)
padding → const Dp
The content's start and end padding, and its top and bottom padding with no label inside (TextFieldPadding). (TextFieldImpl.kt line 2236.)
roundedShape → const ExpressiveShapeKey
The Expressive rounded shape of a filled or outlined field (TextFieldDefaults.roundedShape, OutlinedTextFieldDefaults.roundedShape; beside a TODO until a token states it). (TextFieldDefaults.kt line 77.)
slowFadeMotion → const ExpressiveMotionKey
The spring the placeholder fades on when the field gains focus empty, and when its text is cleared unfocused. (TextFieldImpl.kt line 2050.)
supportingTopPadding → const Dp
The gap between the container and the supporting text (SupportingTopPadding). (TextFieldImpl.kt line 2242.)
tonalContainerColor → const ExpressiveColorRole
A tonal filled field's container, focused or not (beside a TODO until a token states it). (TextFieldDefaults.kt line 754.)
tonalErrorContainerColor → const ExpressiveColorRole
A tonal field's container in error, filled or outlined. (TextFieldDefaults.kt line 808.)
tonalFocusedTextColor → const ExpressiveColorRole
A tonal field's input text when focused or in error, and its supporting text. (TextFieldDefaults.kt line 768.)
tonalOutlineColor → const ExpressiveColorRole
A tonal outlined field's outline when it is not in error, focused or not. (TextFieldDefaults.kt line 1633.)
tonalOutlinedContainerColor → const ExpressiveColorRole
A tonal outlined field's container, focused or not. (TextFieldDefaults.kt line 1632.)