CustomDropdownConfig constructor

const CustomDropdownConfig({
  1. double height = 52,
  2. double radius = 10,
  3. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 12),
  4. Color? borderColor,
  5. Color? dropdownColor,
  6. Color? disabledColor,
  7. Color? errorBorderColor,
  8. double menuMaxHeight = 300,
  9. bool showDivider = true,
  10. bool enableSearch = true,
  11. String searchHint = "Search...",
  12. String noResultsText = "No results found",
  13. double elevation = 8.0,
  14. double borderWidth = 1.0,
  15. double focusedBorderWidth = 1.5,
  16. double errorBorderWidth = 2.0,
  17. Color? searchIconColor,
  18. Color? selectedItemColor,
  19. TextStyle? itemTextStyle,
  20. TextStyle? selectedTextStyle,
  21. Color? shadowColor,
  22. double menuOffset = 4.0,
  23. Duration animationDuration = const Duration(milliseconds: 200),
})

Implementation

const CustomDropdownConfig({
  this.height = 52,
  this.radius = 10,
  this.padding = const EdgeInsets.symmetric(horizontal: 12),
  this.borderColor,
  this.dropdownColor,
  this.disabledColor,
  this.errorBorderColor,
  this.menuMaxHeight = 300,
  this.showDivider = true,
  this.enableSearch = true,
  this.searchHint = "Search...",
  this.noResultsText = "No results found",
  this.elevation = 8.0,
  this.borderWidth = 1.0,
  this.focusedBorderWidth = 1.5,
  this.errorBorderWidth = 2.0,
  this.searchIconColor,
  this.selectedItemColor,
  this.itemTextStyle,
  this.selectedTextStyle,
  this.shadowColor,
  this.menuOffset = 4.0,
  this.animationDuration = const Duration(milliseconds: 200),
});