BeuiInputStyle class

Optional style overrides for BeuiInput. Null fields resolve from the ambient BeuiColors theme extension (or sensible defaults). Mirrors the source's classNames slot map (root / label / field / input / icons / message) with typed fields rather than class strings.

Annotations

Constructors

BeuiInputStyle({Color? borderColor, Color? focusedBorderColor, Color? errorColor, Color? successColor, double? height, double? borderRadius, double? borderWidth, TextStyle? textStyle, EdgeInsetsGeometry? contentPadding, Color? placeholderColor, Color? backgroundColor, Color? focusedBackgroundColor})
Creates a set of BeuiInput overrides.
const

Properties

backgroundColor → Color?
Field fill, including in the disabled field's opacity. Defaults to none.
final
borderColor → Color?
Idle field border. Defaults to BeuiColors.border.
final
borderRadius → double?
Corner radius. Defaults to half the height (source rounded-full).
final
borderWidth → double?
Field border width. Defaults to 1.
final
contentPadding → EdgeInsetsGeometry?
Padding around the editable text, inside the border and icon slots. Defaults to 14px horizontally, or zero on a side with an icon slot.
final
errorColor → Color?
Border + ring + message when errored. Defaults to BeuiColors.destructive.
final
focusedBackgroundColor → Color?
Focused field fill. Defaults to backgroundColor.
final
focusedBorderColor → Color?
Border + ring when focused (and not errored). Defaults to BeuiColors.foreground at 40% alpha, with a BeuiColors.ring glow.
final
hashCode → int
The hash code for this object.
no setterinherited
height → double?
Field height. Defaults to 44 (source h-11).
final
placeholderColor → Color?
Placeholder color. Defaults to the full-strength muted foreground.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
successColor → Color?
Success check colour. Defaults to BeuiColors.success.
final
textStyle → TextStyle?
Overrides merged into the field's 16px, 1.5-height foreground text style. Applies to entered text and the placeholder, which keeps its muted color.
final

Methods

copyWith({Color? borderColor, Color? focusedBorderColor, Color? errorColor, Color? successColor, double? height, double? borderRadius, double? borderWidth, TextStyle? textStyle, EdgeInsetsGeometry? contentPadding, Color? placeholderColor, Color? backgroundColor, Color? focusedBackgroundColor}) → BeuiInputStyle
Returns a copy with the given fields replaced.
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