CkDropDown<T> constructor
const
CkDropDown<T> ({
- required String hint,
- required List<
T> items, - required dynamic onChanged(
- T? value
- required Widget nameBuilder(
- CkDropDownNameBuilderProperty<
T> property
- CkDropDownNameBuilderProperty<
- bool isRequired = false,
- Color? borderColor,
- Color? backgroundColor,
- TextStyle? textStyle,
- bool isLoading = false,
- double? borderRadius,
- Widget? prefix,
- T? initalValue,
- bool enableInitalSelection = true,
- bool disabled = false,
- Key? key,
- FontStyle? fontStyle,
- EdgeInsets? contentPadding,
- Widget selectedItemBuilder(
- T value
- TextStyle? hintStyle,
- CkBorderType borderType = CkBorderType.outline,
- double borderWidth = 1.2,
- Widget? suffixIcon,
- CkDropDownType dropDownType = CkDropDownType.menu,
- bool isSeparated = false,
- EdgeInsets? itemPadding,
Implementation
const CkDropDown({
required this.hint,
required this.items,
required this.onChanged,
required this.nameBuilder,
this.isRequired = false,
this.borderColor,
this.backgroundColor,
this.menuBackgroundColor,
this.textStyle,
this.isLoading = false,
this.borderRadius,
this.prefix,
this.initalValue,
this.enableInitalSelection = true,
this.disabled = false,
super.key,
this.fontStyle,
this.contentPadding,
this.selectedItemBuilder,
this.hintStyle,
this.borderType = CkBorderType.outline,
this.borderWidth = 1.2,
this.suffixIcon,
this.dropDownType = CkDropDownType.menu,
this.menuWidth,
this.isSeparated = false,
this.menuItemAlignment,
this.itemPadding,
this.menuElevation = 1.0,
this.menuBorderColor,
this.menuBorderRadius = 8,
this.footer,
this.menuMaxHeight,
});