StreamTextInputStyle class

Visual styling properties for StreamTextInput.

Controls the border, colors, text styles, and helper text appearance. All border properties use outline-only borders (rounded rectangle) — the design system does not support underline or other border styles.

Helper text follows a unified state model with three variants: StreamHelperState.info, StreamHelperState.error, and StreamHelperState.success. Each state resolves to a default icon and text color from the design tokens.

See also:

Annotations

Constructors

StreamTextInputStyle({TextStyle? textStyle, TextStyle? hintStyle, TextStyle? labelStyle, Color? iconColor, double? iconSize, Color? cursorColor, Color? cursorErrorColor, double? cursorWidth, double? cursorHeight, Radius? cursorRadius, TextStyle? helperInfoStyle, TextStyle? helperErrorStyle, TextStyle? helperSuccessStyle, StreamHelperAffinity? helperAffinity, BorderRadiusGeometry? borderRadius, BorderSide? border, BorderSide? focusBorder, BorderSide? errorBorder, Color? fillColor, EdgeInsetsGeometry? contentPadding, BoxConstraints? constraints, double? helperIconSize, int? helperMaxLines})
Creates text input style properties.
const
StreamTextInputStyle.collapsed({TextStyle? textStyle, TextStyle? hintStyle, TextStyle? labelStyle, Color? iconColor, double? iconSize, Color? cursorColor, Color? cursorErrorColor, double? cursorWidth, double? cursorHeight, Radius? cursorRadius, TextStyle? helperInfoStyle, TextStyle? helperErrorStyle, TextStyle? helperSuccessStyle, StreamHelperAffinity? helperAffinity, BorderRadiusGeometry? borderRadius, Color? fillColor, BoxConstraints? constraints, double? helperIconSize, int? helperMaxLines})
Creates a minimal style with no borders and no padding.
const

Properties

border → BorderSide?
The border side in the default/enabled state.
final
borderRadius → BorderRadiusGeometry?
The border radius of the text input.
final
canMerge → bool
no setterinherited
constraints → BoxConstraints?
Additional size constraints for the text input.
final
contentPadding → EdgeInsetsGeometry?
The padding inside the text input container.
final
cursorColor → Color?
The color of the text input cursor.
final
cursorErrorColor → Color?
The color of the text input cursor when StreamHelperState.error is active.
final
cursorHeight → double?
The height of the text input cursor.
final
cursorRadius → Radius?
The radius of the text input cursor.
final
cursorWidth → double?
The width of the text input cursor.
final
errorBorder → BorderSide?
The border side when StreamHelperState.error is active.
final
fillColor → Color?
The fill color of the text input container.
final
focusBorder → BorderSide?
The border side when the text input has focus.
final
hashCode → int
The hash code for this object.
no setterinherited
helperAffinity → StreamHelperAffinity?
Where helper text is rendered relative to the bordered input area.
final
helperErrorStyle → TextStyle?
The text style for helper text in StreamHelperState.error state.
final
helperIconSize → double?
The icon size for helper text icons.
final
helperInfoStyle → TextStyle?
The text style for helper text in StreamHelperState.info state.
final
helperMaxLines → int?
The maximum number of lines for helper text.
final
helperSuccessStyle → TextStyle?
The text style for helper text in StreamHelperState.success state.
final
hintStyle → TextStyle?
The text style for hint text.
final
iconColor → Color?
The color for leading and trailing icons.
final
iconSize → double?
The size for leading and trailing icons.
final
labelStyle → TextStyle?
The text style for the persistent label rendered above the input.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
textStyle → TextStyle?
The default text style for the input text.
final

Methods

copyWith({TextStyle? textStyle, TextStyle? hintStyle, TextStyle? labelStyle, Color? iconColor, double? iconSize, Color? cursorColor, Color? cursorErrorColor, double? cursorWidth, double? cursorHeight, Radius? cursorRadius, TextStyle? helperInfoStyle, TextStyle? helperErrorStyle, TextStyle? helperSuccessStyle, StreamHelperAffinity? helperAffinity, BorderRadiusGeometry? borderRadius, BorderSide? border, BorderSide? focusBorder, BorderSide? errorBorder, Color? fillColor, EdgeInsetsGeometry? contentPadding, BoxConstraints? constraints, double? helperIconSize, int? helperMaxLines}) → StreamTextInputStyle
inherited
merge(StreamTextInputStyle? other) → StreamTextInputStyle
inherited
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

Static Methods

lerp(StreamTextInputStyle? a, StreamTextInputStyle? b, double t) → StreamTextInputStyle?
Linearly interpolate between two StreamTextInputStyle objects.