AppDropdown<T> constructor
const
AppDropdown<T> ({
- Key? key,
- required List<
DropdownMenuItem< ? items,T> > - required ValueChanged<
T?> ? onChanged, - T? value,
- String? label,
- String? hint,
- Widget? prefixIcon,
- bool isLoading = false,
- FormFieldValidator<
T> ? validator, - FormFieldSetter<
T> ? onSaved, - TextFieldStyle fieldStyle = TextFieldStyle.outlined,
- LabelPosition labelPosition = LabelPosition.above,
- Color? backgroundColor,
- Color? borderColor,
- double? borderRadius,
- EdgeInsetsGeometry? contentPadding,
- bool enabled = true,
Implementation
const AppDropdown({
super.key,
required this.items,
required this.onChanged,
this.value,
this.label,
this.hint,
this.prefixIcon,
this.isLoading = false,
this.validator,
this.onSaved,
this.fieldStyle = TextFieldStyle.outlined,
this.labelPosition = LabelPosition.above,
this.backgroundColor,
this.borderColor,
this.borderRadius,
this.contentPadding,
this.enabled = true,
});