InputDecorationFields class abstract final

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

affixesAlwaysVisible → const PropDef<bool>
Shows prefixText and suffixText all the time, not only once the field is focused or has text (a unit such as "kWh").
alignLabelWithHint → const PropDef<bool?>
Aligns the label with the hint in a multi-line field.
border → const PropDef<InputBorder?>
The border used for any state without its own ({"type": "outline", "borderSide": {...}, "borderRadius": 8}, underline or none).
constraints → const PropDef<BoxConstraints>
Size limits for the decorated field.
contentPadding → const PropDef<EdgeInsets?>
Space between the border and the text: a number or [left, top, right, bottom]. An outlined field needs some ([14, 16, 14, 16]) to keep the text off the border.
counterStyle → const PropDef<TextStyle>
The character counter's style.
counterText → const PropDef<String?>
Replaces the character counter; "" hides it.
disabledBorder → const PropDef<InputBorder?>
The border while the field is disabled.
enabled → const PropDef<bool>
False draws the field disabled.
enabledBorder → const PropDef<InputBorder?>
The border while the field is enabled and not focused.
errorBorder → const PropDef<InputBorder?>
The border while the field shows an error (errorText set).
errorMaxLines → const PropDef<int?>
At most this many lines of error text.
errorStyle → const PropDef<TextStyle>
The error text's style.
errorText → const PropDef<String?>
The error under the field. Bound to a yes/no (SDK 8.x's error switch), true puts the field in error without a message (kErrorWithoutMessage: the error border only) and false clears it.
fillColor → const PropDef<Color?>
The field's background, drawn when filled is true.
filled → const PropDef<bool?>
Paints fillColor behind the field.
floatingLabelBehavior → const PropDef<FloatingLabelBehavior?>
When the label floats above the field: auto, always, never.
floatingLabelStyle → const PropDef<TextStyle>
The label's style when it floats above the field.
focusColor → const PropDef<Color?>
The fill while the field has the focus.
focusedBorder → const PropDef<InputBorder?>
The border while the field has the focus.
focusedErrorBorder → const PropDef<InputBorder?>
The border while the field has the focus and shows an error.
helperMaxLines → const PropDef<int?>
At most this many lines of helper text.
helperStyle → const PropDef<TextStyle>
The helper text's style.
helperText → const PropDef<String?>
A line of help under the field.
hintMaxLines → const PropDef<int?>
At most this many lines of hint.
hintStyle → const PropDef<TextStyle>
The hint's style.
hintText → const PropDef<String?>
Shown in the empty field (a placeholder).
hoverColor → const PropDef<Color?>
The fill while a mouse is over the field.
icon → const PropDef<InputIcon?>
An icon before the field, outside its border.
isCollapsed → const PropDef<bool>
No padding and no room for a label: the field is as small as its text.
isDense → const PropDef<bool?>
Less vertical padding.
labelStyle → const PropDef<TextStyle>
The label's style.
labelText → const PropDef<String?>
The label: inside the empty field, floating above it when focused or filled.
paddingIncludesBorder → const PropDef<bool>
The active border's width adds to contentPadding, as a container's border adds to its padding (Flutter draws an outline over the padding).
prefixIcon → const PropDef<InputIcon?>
An icon inside the border, before the text: {"icon": "search", "size": 18}; it may take reactions.
prefixIconConstraints → const PropDef<BoxConstraints>
The prefix icon's size limits.
prefixIconPadding → const PropDef<EdgeInsets?>
Space around the prefix icon inside its box: places it at a set inset instead of Material's centered 48 px box; null keeps Material's layout.
prefixStyle → const PropDef<TextStyle>
The prefix text's style.
prefixText → const PropDef<String?>
Text before the typed text ($).
semanticCounterText → const PropDef<String?>
What a screen reader says for the counter.
spec → const WidgetSpec
suffixIcon → const PropDef<InputIcon?>
An icon inside the border, after the text: a clear (close) or show-password button; it may take reactions.
suffixIconConstraints → const PropDef<BoxConstraints>
The suffix icon's size limits.
suffixIconPadding → const PropDef<EdgeInsets?>
Space around the suffix icon inside its box; see prefixIconPadding.
suffixStyle → const PropDef<TextStyle>
The suffix text's style.
suffixText → const PropDef<String?>
Text after the typed text (kg).