UiDropdown<T> constructor
const
UiDropdown<T> ({
- Key? key,
- required List<
DropdownMenuItem< items,T> > - required T? value,
- required void onChanged(
- T?
- String? hintText,
- String? labelText,
- String? errorText,
- bool isDense = true,
- bool isExpanded = true,
- bool enabled = true,
- Widget? prefixIcon,
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 10),
- double borderRadius = 12.0,
- Color? backgroundColor,
- Color? borderColor,
- Color? shadowColor,
Implementation
const UiDropdown({
super.key,
required this.items,
required this.value,
required this.onChanged,
this.hintText,
this.labelText,
this.errorText,
this.isDense = true,
this.isExpanded = true,
this.enabled = true,
this.prefixIcon,
this.padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 10),
this.borderRadius = 12.0,
this.backgroundColor,
this.borderColor,
this.shadowColor,
});