AwesomeDropDown constructor
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,
Implementation
AwesomeDropDown({
required this.dropDownList,
this.isPanDown: false,
this.dropDownBGColor: Colors.white,
this.dropDownIconBGColor: Colors.transparent,
this.dropDownOverlayBGColor: Colors.white,
this.dropDownBorderRadius: 0,
this.dropDownIcon: const Icon(Icons.arrow_drop_down),
this.onDropDownItemClick,
this.isBackPressedOrTouchedOutSide: false,
this.dropStateChanged,
this.dropDownBottomBorderRadius: 50,
this.dropDownTopBorderRadius: 50,
this.selectedItem: '',
this.selectedItemTextStyle: const TextStyle(
color: Colors.black, fontSize: 16, fontWeight: FontWeight.normal),
this.dropDownListTextStyle: const TextStyle(
color: Colors.grey, fontSize: 15, backgroundColor: Colors.transparent),
this.elevation: 5,
this.padding: 8,
this.numOfListItemToShow: 4,
});