AwesomeDropDown constructor

AwesomeDropDown({
  1. required List<String> dropDownList,
  2. bool isPanDown = false,
  3. Color dropDownBGColor = Colors.white,
  4. Color dropDownIconBGColor = Colors.transparent,
  5. Color dropDownOverlayBGColor = Colors.white,
  6. double dropDownBorderRadius = 0,
  7. Widget dropDownIcon = const Icon(Icons.arrow_drop_down),
  8. Function? onDropDownItemClick,
  9. bool isBackPressedOrTouchedOutSide = false,
  10. Function? dropStateChanged,
  11. double dropDownBottomBorderRadius = 50,
  12. double dropDownTopBorderRadius = 50,
  13. String selectedItem = '',
  14. TextStyle selectedItemTextStyle = const TextStyle(color: Colors.black, fontSize: 16, fontWeight: FontWeight.normal),
  15. TextStyle dropDownListTextStyle = const TextStyle(color: Colors.grey, fontSize: 15, backgroundColor: Colors.transparent),
  16. double elevation = 5,
  17. double padding = 8,
  18. 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,
});