ShadInputTheme class

Annotations

Constructors

ShadInputTheme({bool canMerge = true, ShadDecoration? decoration, EdgeInsetsGeometry? padding, TextStyle? style, Color? cursorColor, double? cursorWidth, double? cursorHeight, Radius? cursorRadius, bool? cursorOpacityAnimates, TextStyle? placeholderStyle, AlignmentGeometry? alignment, AlignmentGeometry? placeholderAlignment, EdgeInsetsGeometry? inputPadding, MainAxisAlignment? mainAxisAlignment, CrossAxisAlignment? crossAxisAlignment, double? gap, BoxConstraints? constraints, EdgeInsetsGeometry? scrollbarPadding, double? verticalGap, bool? useBrowserContextMenu})
const

Properties

alignment AlignmentGeometry?
The alignment of the input field. Defaults to Alignment.topLeft if not specified.
final
canMerge bool
no setter
constraints BoxConstraints?
The constraints of the input field.
final
crossAxisAlignment CrossAxisAlignment?
The cross axis alignment of the input’s row (vertical). Defaults to CrossAxisAlignment.center if not specified.
final
cursorColor Color?
The color of the cursor. Defaults to the theme’s primary color if not specified.
final
cursorHeight double?
The height of the cursor. Defaults to null, matching the text height.
final
cursorOpacityAnimates bool?
Whether the cursor opacity animates when blinking. Defaults to false, relying on EditableText default value.
final
cursorRadius Radius?
The radius of the cursor’s corners. Defaults to null (sharp edges).
final
cursorWidth double?
The width of the cursor. Defaults to 2.0 pixels.
final
decoration ShadDecoration?
The decoration applied to the input field. Merged with the theme’s default decoration if provided.
final
gap double?
The gap between the input field and its leading/trailing widgets. Defaults to 8 if not specified.
final
hashCode int
The hash code for this object.
no setterinherited
inputPadding EdgeInsetsGeometry?
The padding around the editable text within the input field. Defaults to EdgeInsets.zero if not specified.
final
mainAxisAlignment MainAxisAlignment?
The main axis alignment of the input’s row (horizontal). Defaults to MainAxisAlignment.start if not specified.
final
padding EdgeInsetsGeometry?
The padding around the entire input, including decorations. Defaults to theme’s input padding if not specified.
final
placeholderAlignment AlignmentGeometry?
The alignment of the placeholder within the input field. Defaults to Alignment.topLeft if not specified.
final
placeholderStyle TextStyle?
The text style for the placeholder when the input is empty. Defaults to the theme’s muted style if not specified.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollbarPadding EdgeInsetsGeometry?
The padding around the scrollbar.
final
style TextStyle?
The text style for the input content. Defaults to the theme’s muted style with foreground color if not specified.
final
useBrowserContextMenu bool?
Whether to use the browser's native context menu on web.
final
verticalGap double?
The gap between the input field and its top/bottom widgets.
final

Methods

copyWith({ShadDecoration? decoration, EdgeInsetsGeometry? padding, TextStyle? style, Color? cursorColor, double? cursorWidth, double? cursorHeight, Radius? cursorRadius, bool? cursorOpacityAnimates, TextStyle? placeholderStyle, AlignmentGeometry? alignment, AlignmentGeometry? placeholderAlignment, EdgeInsetsGeometry? inputPadding, MainAxisAlignment? mainAxisAlignment, CrossAxisAlignment? crossAxisAlignment, double? gap, BoxConstraints? constraints, EdgeInsetsGeometry? scrollbarPadding, double? verticalGap, bool? useBrowserContextMenu}) ShadInputTheme
inherited
merge(ShadInputTheme? other) ShadInputTheme
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(ShadInputTheme? a, ShadInputTheme? b, double t) ShadInputTheme?