CustomDropdown constructor
const
CustomDropdown({
- Key? key,
- double? width,
- double? height,
- required List items,
- required ValueChanged onChanged,
- dynamic value,
- String? hint,
- TextStyle? hintStyle,
- TextStyle? itemStyle,
- TextStyle? style,
- IconData dropdownIcon = Icons.arrow_drop_down,
- Color? iconColor,
- double? iconSize,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- Color? dropdownColor,
- double? dropdownWidth,
- double? dropdownHeight,
- double? dropdownElevation,
- double? dropdownBorderRadius,
- double? dropdownMaxHeight,
- Color? textColor,
- Color? hintColor,
- Color? itemColor,
Implementation
const CustomDropdown({
super.key,
this.width,
this.height,
required this.items,
required this.onChanged,
this.value,
this.hint,
this.hintStyle,
this.itemStyle,
this.style,
this.dropdownIcon = Icons.arrow_drop_down,
this.iconColor,
this.iconSize,
this.padding,
this.margin,
this.dropdownColor,
this.dropdownWidth,
this.dropdownHeight,
this.dropdownElevation,
this.dropdownBorderRadius,
this.dropdownMaxHeight,
this.textColor,
this.hintColor,
this.itemColor,
});