FieldDecoration class

Represents the decoration for the dropdown field.

Constructors

FieldDecoration({String? labelText, String? hintText = 'Select', InputBorder? border, InputBorder? focusedBorder, InputBorder? disabledBorder, InputBorder? errorBorder, Widget? suffixIcon = const Icon(Icons.arrow_drop_down), Widget? prefixIcon, TextStyle? labelStyle, double borderRadius = 12, TextStyle? hintStyle, bool animateSuffixIcon = true, EdgeInsets? padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 8), Color? backgroundColor, bool showClearIcon = true})
Creates a new instance of FieldDecoration.
const

Properties

animateSuffixIcon bool
animate the icon or not
final
backgroundColor Color?
background color of the dropdown field
final
border InputBorder?
The border of the dropdown field.
final
borderRadius double
The border radius of the dropdown field.
final
disabledBorder InputBorder?
The border of the dropdown field when it is disabled.
final
errorBorder InputBorder?
The border of the dropdown field when there is an error.
final
focusedBorder InputBorder?
The border of the dropdown field when it is focused.
final
hashCode int
The hash code for this object.
no setterinherited
hintStyle TextStyle?
The style of the hint text.
final
hintText String?
The hint text to display in the dropdown field.
final
labelStyle TextStyle?
The style of the label text.
final
labelText String?
The label text to display above the dropdown field.
final
padding EdgeInsets?
padding around the dropdown field
final
prefixIcon Widget?
The icon to display at the start of dropdown field.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showClearIcon bool
show clear icon or not in the dropdown field
final
suffixIcon Widget?
The icon to display at the end of dropdown field.
final

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