AwesomeDropDown class
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
dropDownBGColor
→ Color
background Color of dropdown, icon, and overLay,
final
dropDownBorderRadius
→ double
this radius will be used to set the border of drop down
final
dropDownBottomBorderRadius
↔ double
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
dropDownIcon
→ Widget
user can set any Icon or Image here because it accept any widget
final
dropDownIconBGColor
→ Color
background Color of dropdown, icon, and overLay,
final
dropDownList
→ List <String >
The list of items the user can select
If the list of items is null then an empty list will be shown
final
dropDownListTextStyle
↔ TextStyle
TextStyle for the value of list in drop down.
getter/setter pair
dropDownOverlayBGColor
→ Color
background Color of dropdown, icon, and overLay,
final
dropDownTopBorderRadius
↔ double
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 setter inherited
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.
final inherited
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 setter inherited
selectedItem
↔ String
A placeholder text that is displayed by the dropdown
getter/setter pair
selectedItemTextStyle
↔ TextStyle
TextStyle for the hint.
getter/setter pair