InputDecoration class final

Flutter's InputDecoration: a text field's border, label, hint, helper, error, prefix and suffix. Every field has Flutter's default (unset: the theme's).

Inheritance

Properties

affixesAlwaysVisible → bool
no setter
alignLabelWithHint → bool?
no setter
border → InputBorder?
no setter
constraints → BoxConstraints
no setter
contentPadding → EdgeInsets?
no setter
counterStyle → TextStyle
no setter
counterText → String?
no setter
disabledBorder → InputBorder?
no setter
enabled → bool
no setter
enabledBorder → InputBorder?
no setter
errorBorder → InputBorder?
no setter
errorMaxLines → int?
no setter
errorStyle → TextStyle
no setter
errorText → String?
no setter
fields → Props
The values that differ from the defaults.
finalinherited
fillColor → Color?
no setter
filled → bool?
no setter
floatingLabelBehavior → FloatingLabelBehavior?
no setter
floatingLabelStyle → TextStyle
no setter
focusColor → Color?
no setter
focusedBorder → InputBorder?
no setter
focusedErrorBorder → InputBorder?
no setter
hashCode → int
The hash code for this object.
no setterinherited
helperMaxLines → int?
no setter
helperStyle → TextStyle
no setter
helperText → String?
no setter
hintMaxLines → int?
no setter
hintStyle → TextStyle
no setter
hintText → String?
no setter
hoverColor → Color?
no setter
icon → InputIcon?
no setter
isCollapsed → bool
no setter
isDense → bool?
no setter
isEmpty → bool
Whether every field has its default.
no setterinherited
labelStyle → TextStyle
no setter
labelText → String?
no setter
paddingIncludesBorder → bool
no setter
prefixIcon → InputIcon?
no setter
prefixIconConstraints → BoxConstraints
no setter
prefixIconPadding → EdgeInsets?
no setter
prefixStyle → TextStyle
no setter
prefixText → String?
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticCounterText → String?
no setter
spec → WidgetSpec
The declared fields.
no setteroverride
suffixIcon → InputIcon?
no setter
suffixIconConstraints → BoxConstraints
no setter
suffixIconPadding → EdgeInsets?
no setter
suffixStyle → TextStyle
no setter
suffixText → String?
no setter

Methods

get<T>(PropDef<T> field) → T
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set<T>(PropDef<T> field, T value) → InputDecoration
toJson() → Json
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Object? json) → InputDecoration

Constants

empty → const InputDecoration
InputDecoration().