UiDropdown<T> constructor

const UiDropdown<T>({
  1. Key? key,
  2. required List<DropdownMenuItem<T>> items,
  3. required T? value,
  4. required void onChanged(
    1. T?
    )?,
  5. String? hintText,
  6. String? labelText,
  7. String? errorText,
  8. bool isDense = true,
  9. bool isExpanded = true,
  10. bool enabled = true,
  11. Widget? prefixIcon,
  12. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 10),
  13. double borderRadius = 12.0,
  14. Color? backgroundColor,
  15. Color? borderColor,
  16. 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,
});