DropdownPlusTheme constructor

const DropdownPlusTheme({
  1. Color? backgroundColor,
  2. Color? borderColor,
  3. Color? activeBorderColor,
  4. double borderWidth = 1.0,
  5. double activeBorderWidth = 1.5,
  6. double borderRadius = 10.0,
  7. EdgeInsets? contentPadding,
  8. TextStyle? hintStyle,
  9. TextStyle? triggerTextStyle,
  10. Color? menuBackgroundColor,
  11. double menuBorderRadius = 12.0,
  12. double menuElevation = 12.0,
  13. double menuMaxHeight = 320.0,
  14. Color? menuBorderColor,
  15. Color? searchBarBackgroundColor,
  16. double searchBarBorderRadius = 10.0,
  17. TextStyle? searchHintStyle,
  18. TextStyle? searchTextStyle,
  19. Color? searchIconColor,
  20. TextStyle? itemTextStyle,
  21. TextStyle? selectedItemTextStyle,
  22. Color? selectedItemBackgroundColor,
  23. EdgeInsets? itemPadding,
  24. Color? dividerColor,
  25. Color? checkboxBorderColor,
  26. Color? checkboxActiveColor,
  27. double checkboxSize = 22.0,
  28. Color? chipBackgroundColor,
  29. TextStyle? chipTextStyle,
  30. Color? chipBorderColor,
  31. double chipBorderRadius = 16.0,
  32. Color? chipDeleteIconColor,
  33. double chipDeleteIconSize = 14.0,
  34. Color? countChipBackgroundColor,
  35. TextStyle? countChipTextStyle,
  36. Color? loadingIndicatorColor,
  37. TextStyle? loadingTextStyle,
  38. TextStyle? noResultsTextStyle,
  39. Color? noResultsIconColor,
  40. Color? arrowIconColor,
  41. double arrowIconSize = 22.0,
  42. Color? headerBackgroundColor,
  43. TextStyle? selectAllTextStyle,
  44. TextStyle? selectedCountTextStyle,
  45. Color? selectedCountBackgroundColor,
})

Implementation

const DropdownPlusTheme({
  // --- Trigger button ---
  this.backgroundColor,
  this.borderColor,
  this.activeBorderColor,
  this.borderWidth = 1.0,
  this.activeBorderWidth = 1.5,
  this.borderRadius = 10.0,
  this.contentPadding,
  this.hintStyle,
  this.triggerTextStyle,

  // --- Dropdown menu panel ---
  this.menuBackgroundColor,
  this.menuBorderRadius = 12.0,
  this.menuElevation = 12.0,
  this.menuMaxHeight = 320.0,
  this.menuBorderColor,

  // --- Search bar ---
  this.searchBarBackgroundColor,
  this.searchBarBorderRadius = 10.0,
  this.searchHintStyle,
  this.searchTextStyle,
  this.searchIconColor,

  // --- Items ---
  this.itemTextStyle,
  this.selectedItemTextStyle,
  this.selectedItemBackgroundColor,
  this.itemPadding,
  this.dividerColor,

  // --- Multi-select checkbox ---
  this.checkboxBorderColor,
  this.checkboxActiveColor,
  this.checkboxSize = 22.0,

  // --- Chips (multi-select display) ---
  this.chipBackgroundColor,
  this.chipTextStyle,
  this.chipBorderColor,
  this.chipBorderRadius = 16.0,
  this.chipDeleteIconColor,
  this.chipDeleteIconSize = 14.0,
  this.countChipBackgroundColor,
  this.countChipTextStyle,

  // --- Loading / empty states ---
  this.loadingIndicatorColor,
  this.loadingTextStyle,
  this.noResultsTextStyle,
  this.noResultsIconColor,

  // --- Dropdown arrow icon ---
  this.arrowIconColor,
  this.arrowIconSize = 22.0,

  // --- Multi-select header bar ---
  this.headerBackgroundColor,
  this.selectAllTextStyle,
  this.selectedCountTextStyle,
  this.selectedCountBackgroundColor,
});