AppAutoDropdown class

Inheritance

Constructors

AppAutoDropdown({Key? key, ScrollController? parentScrollController, required void onSelected(DropItem), required List<DropItem> items, AutoDropStyle dropdownStyle = const AutoDropStyle(), AutoDropButtonStyle dropdownButtonStyle = const AutoDropButtonStyle(), Widget? icon, bool hideIcon = false, bool enabled = true, required String hintText, bool isHighLightColor = true, Color? bgColorDropDown, bool visiblePrefix = false, bool isShowBgItem = false, String assetFile = '', Widget assetWidget = const Offstage(), Color? colorItem, String? initialValue, String label = '', TextDropStyle labelDropStyle = const TextDropStyle(), TextDropStyle textDropStyle = const TextDropStyle(), TextDropStyle hintTextDropStyle = const TextDropStyle(), TextDropStyle itemStyle = const TextDropStyle(), Color? bgColorItem})
const

Properties

assetFile String
The file path to an asset used in the dropdown.
final
assetWidget Widget
A custom widget for the dropdown button, typically used in place of the default icon.
final
bgColorDropDown Color?
The background color of the dropdown menu.
final
bgColorItem Color?
The background color of individual dropdown items.
final
colorItem Color?
The color of the dropdown items.
final
Styles for the dropdown button, passed to OutlineButton.styleFrom().
final
Styles for the dropdown menu.
final
enabled bool
Determines if the dropdown is enabled for user interaction.
final
hashCode int
The hash code for this object.
no setterinherited
hideIcon bool
If true, the dropdown button icon is hidden.
final
hintText String
The hint text displayed when no item is selected.
final
hintTextDropStyle TextDropStyle
Styles for the hint text in the dropdown.
final
icon Widget?
Icon to display on the dropdown button; defaults to a caret icon if not provided.
final
initialValue String?
The initial value selected in the dropdown, if any.
final
isHighLightColor bool
If true, highlights the selected dropdown item with a specific color.
final
isShowBgItem bool
If true, displays a background for each dropdown item.
final
items List<DropItem>
The list of items to display in the dropdown menu.
final
itemStyle TextDropStyle
Styles for the dropdown items' text.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label String
The label text displayed for the dropdown.
final
labelDropStyle TextDropStyle
Styles for the dropdown label text.
final
onSelected → void Function(DropItem)
Called when the selected dropdown option changes. Passes the selected DropItem and its index.
final
parentScrollController ScrollController?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textDropStyle TextDropStyle
Styles for the main text displayed in the dropdown.
final
visiblePrefix bool
If true, displays a prefix widget alongside the dropdown button.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<AppAutoDropdown>
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