TextField constructor
const
TextField({
- Key? key,
- Key? fieldKey,
- bool enabled = true,
- bool autofocus = false,
- bool autocorrect = true,
- TextEditingController? controller,
- TextInputType? keyboardType,
- List<
TextInputFormatter> ? inputFormatters, - TextCapitalization textCapitalization = TextCapitalization.none,
- required String label,
- String? placeholder,
- String? error,
- Widget? prefix,
- Widget? suffix,
- int? maxLines = 1,
- int? maxLength,
- void onChanged()?,
- void onSubmitted()?,
Implementation
const TextField({
super.key,
this.fieldKey,
this.enabled = true,
this.autofocus = false,
this.autocorrect = true,
this.controller,
this.keyboardType,
this.inputFormatters,
this.textCapitalization = TextCapitalization.none,
required this.label,
this.placeholder,
this.error,
this.prefix,
this.suffix,
this.maxLines = 1,
this.maxLength,
this.onChanged,
this.onSubmitted,
});