AwesomeDropDown class

Inheritance

Constructors

AwesomeDropDown({required List<String> dropDownList, bool isPanDown = false, Color dropDownBGColor = Colors.white, Color dropDownIconBGColor = Colors.transparent, Color dropDownOverlayBGColor = Colors.white, double dropDownBorderRadius = 0, Widget dropDownIcon = const Icon(Icons.arrow_drop_down), Function? onDropDownItemClick, bool isBackPressedOrTouchedOutSide = false, Function? dropStateChanged, double dropDownBottomBorderRadius = 50, double dropDownTopBorderRadius = 50, String selectedItem = '', TextStyle selectedItemTextStyle = const TextStyle(color: Colors.black, fontSize: 16, fontWeight: FontWeight.normal), TextStyle dropDownListTextStyle = const TextStyle(color: Colors.grey, fontSize: 15, backgroundColor: Colors.transparent), double elevation = 5, double padding = 8, int numOfListItemToShow = 4})

Properties

background Color of dropdown, icon, and overLay,
final
this radius will be used to set the border of drop down
final
this radius is used to custom the bottom borders of drop down user can set drop down style as Rectangular, Oval, Rounded Borders and any other it helps user to make customize design of drop down
getter/setter pair
user can set any Icon or Image here because it accept any widget
final
background Color of dropdown, icon, and overLay,
final
The list of items the user can select If the list of items is null then an empty list will be shown
final
TextStyle for the value of list in drop down.
getter/setter pair
background Color of dropdown, icon, and overLay,
final
this radius is used to custom the top borders of drop down user can set drop down style as Rectangular, Oval, Rounded Borders and any other it helps user to make customize design of drop down
getter/setter pair
dropStateChanged Function?
this func is used to maintain the open and close state of drop down
getter/setter pair
elevation double
user can provide any elevation as per his choice
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isBackPressedOrTouchedOutSide bool
this variable is used to close the drop down is user touch outside or by back pressed
getter/setter pair
isPanDown bool
thi variable is used to detect panDown event of scaffold body
getter/setter pair
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
numOfListItemToShow int
user can define how many items of list would be shown when drop down opens, by default we set it's value to '4'
getter/setter pair
onDropDownItemClick Function?
this func is used for select any item from the list
getter/setter pair
padding double
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedItem String
A placeholder text that is displayed by the dropdown
getter/setter pair
selectedItemTextStyle TextStyle
TextStyle for the hint.
getter/setter pair

Methods

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