DropdownPlusTheme constructor
const
DropdownPlusTheme({
- Color? backgroundColor,
- Color? borderColor,
- Color? activeBorderColor,
- double borderWidth = 1.0,
- double activeBorderWidth = 1.5,
- double borderRadius = 10.0,
- EdgeInsets? contentPadding,
- TextStyle? hintStyle,
- TextStyle? triggerTextStyle,
- Color? searchBarBackgroundColor,
- double searchBarBorderRadius = 10.0,
- TextStyle? searchHintStyle,
- TextStyle? searchTextStyle,
- Color? searchIconColor,
- TextStyle? itemTextStyle,
- TextStyle? selectedItemTextStyle,
- Color? selectedItemBackgroundColor,
- EdgeInsets? itemPadding,
- Color? dividerColor,
- Color? checkboxBorderColor,
- Color? checkboxActiveColor,
- double checkboxSize = 22.0,
- Color? chipBackgroundColor,
- TextStyle? chipTextStyle,
- Color? chipBorderColor,
- double chipBorderRadius = 16.0,
- Color? chipDeleteIconColor,
- double chipDeleteIconSize = 14.0,
- Color? countChipBackgroundColor,
- TextStyle? countChipTextStyle,
- Color? loadingIndicatorColor,
- TextStyle? loadingTextStyle,
- TextStyle? noResultsTextStyle,
- Color? noResultsIconColor,
- Color? arrowIconColor,
- double arrowIconSize = 22.0,
- Color? headerBackgroundColor,
- TextStyle? selectAllTextStyle,
- TextStyle? selectedCountTextStyle,
- 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,
});