FlutterFlowDropDown<T> class

A dropdown widget that allows the user to select an option from a list of options.

Inheritance
Available extensions

Constructors

FlutterFlowDropDown.new({Key? key, FormFieldController<T?>? controller, FormFieldController<List<T>?>? multiSelectController, String? hintText, String? searchHintText, required List<T> options, List<String>? optionLabels, dynamic onChanged(T?)?, dynamic onMultiSelectChanged(List<T>?)?, Widget? icon, double? width, double? height, double? maxHeight, Color? fillColor, TextStyle? searchHintTextStyle, TextStyle? searchTextStyle, Color? searchCursorColor, required TextStyle textStyle, required double elevation, required double borderWidth, required double borderRadius, required Color borderColor, required EdgeInsetsGeometry margin, bool hidesUnderline = false, bool disabled = false, bool isOverButton = false, Offset? menuOffset, bool isSearchable = false, bool isMultiSelect = false, String? labelText, TextStyle? labelTextStyle})
const

Properties

borderColor Color
The color of the dropdown field's border.
final
borderRadius double
The border radius of the dropdown field.
final
borderWidth double
The width of the dropdown field's border.
final
controller FormFieldController<T?>?
The controller for the dropdown field.
final
disabled bool
Whether the dropdown is disabled.
final
elevation double
The elevation of the dropdown menu.
final
fillColor Color?
The background color of the dropdown field.
final
hashCode int
The hash code for this object.
no setterinherited
height double?
The height of the dropdown field.
final
hidesUnderline bool
Whether to hide the underline of the dropdown field.
final
hintText String?
The text to display as a hint when no option is selected.
final
icon Widget?
The icon to display in the dropdown field.
final
isMultiSelect bool
Whether the dropdown is in multi-select mode.
final
isOverButton bool
Whether the dropdown menu is displayed over the button.
final
isSearchable bool
Whether the dropdown is searchable.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
labelText String?
The label text for the dropdown field.
final
labelTextStyle TextStyle?
The text style for the label text.
final
margin EdgeInsetsGeometry
The margin around the dropdown field.
final
maxHeight double?
The maximum height of the dropdown menu.
final
The offset of the dropdown menu.
final
multiSelectController FormFieldController<List<T>?>?
The controller for the multi-select dropdown field.
final
onChanged → dynamic Function(T?)?
A callback function that is called when the selected option changes.
final
onMultiSelectChanged → dynamic Function(List<T>?)?
A callback function that is called when the selected options change in multi-select mode.
final
optionLabels List<String>?
The list of labels corresponding to the options.
final
options List<T>
The list of options to display in the dropdown.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchCursorColor Color?
The color of the search cursor.
final
searchHintText String?
The text to display as a hint in the search field.
final
searchHintTextStyle TextStyle?
The text style for the search hint text.
final
searchTextStyle TextStyle?
The text style for the search text.
final
textStyle TextStyle
The text style for the dropdown field.
final
width double?
The width of the dropdown field.
final

Methods

animateOnActionTrigger(AnimationInfo animationInfo, {List<Effect>? effects, bool hasBeenTriggered = false}) Widget

Available on Widget, provided by the AnimatedWidgetExtension extension

animateOnPageLoad(AnimationInfo animationInfo, {List<Effect>? effects}) Widget

Available on Widget, provided by the AnimatedWidgetExtension extension

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<FlutterFlowDropDown<T>>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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