TextInput constructor

const TextInput({
  1. Key? key,
  2. required String label,
  3. required String placeholder,
  4. String? initialValue,
  5. bool enabled = true,
  6. bool readOnly = false,
  7. bool obscureText = false,
  8. bool autocorrect = true,
  9. bool enableSuggestions = true,
  10. bool enableInteractiveSelection = true,
  11. TextEditingController? controller,
  12. FormFieldValidator<String>? validator,
  13. FormFieldSetter<String>? onSaved,
  14. AutovalidateMode autovalidateMode = AutovalidateMode.disabled,
  15. TextInputType keyboardType = TextInputType.text,
  16. TextInputAction textInputAction = TextInputAction.next,
  17. InputDecoration? decoration,
  18. dynamic onChanged(
    1. String
    )?,
  19. VoidCallback? onTap,
  20. String? helperText,
  21. String? errorText,
  22. Widget? leadingIcon,
  23. Widget? trailingIcon,
  24. Widget? trailingIcon2,
  25. bool required = false,
})

Implementation

const TextInput({
  super.key,
  required this.label,
  required this.placeholder,
  this.initialValue,
  this.enabled = true,
  this.readOnly = false,
  this.obscureText = false,
  this.autocorrect = true,
  this.enableSuggestions = true,
  this.enableInteractiveSelection = true,
  this.controller,
  this.validator,
  this.onSaved,
  this.autovalidateMode = AutovalidateMode.disabled,
  this.keyboardType = TextInputType.text,
  this.textInputAction = TextInputAction.next,
  this.decoration,
  this.onChanged,
  this.onTap,
  this.helperText,
  this.errorText,
  this.leadingIcon,
  this.trailingIcon,
  this.trailingIcon2,
  this.required = false,
});