CustomDropdownConfig constructor
const
CustomDropdownConfig({
- double height = 52,
- double radius = 10,
- EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 12),
- Color? borderColor,
- Color? dropdownColor,
- Color? disabledColor,
- Color? errorBorderColor,
- bool showDivider = true,
- bool enableSearch = true,
- String searchHint = "Search...",
- String noResultsText = "No results found",
- double elevation = 8.0,
- double borderWidth = 1.0,
- double focusedBorderWidth = 1.5,
- double errorBorderWidth = 2.0,
- Color? searchIconColor,
- Color? selectedItemColor,
- TextStyle? itemTextStyle,
- TextStyle? selectedTextStyle,
- Color? shadowColor,
- 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),
});