TextInput constructor

const TextInput({
  1. String? placeholder,
  2. TextInputType type = TextInputType.text,
  3. ComponentSize size = ComponentSize.md,
  4. bool disabled = false,
  5. bool required = false,
  6. bool readOnly = false,
  7. String? value,
  8. String? name,
  9. String? id,
  10. Widget? prefix,
  11. Widget? suffix,
  12. String? error,
  13. String? helperText,
  14. String? label,
  15. void onChanged(
    1. String
    )?,
  16. void onFocus()?,
  17. void onBlur()?,
  18. void onSubmitted(
    1. String
    )?,
  19. ArcaneInteraction? onChangeAction,
  20. ArcaneInteraction? onSubmitAction,
  21. String? formId,
  22. String? fieldName,
  23. Map<String, String>? attributes,
  24. bool fullWidth = false,
  25. ArcaneStyleData? styles,
  26. ArcaneDecoration? decoration,
  27. Key? key,
})

Implementation

const TextInput({
  this.placeholder,
  this.type = TextInputType.text,
  this.size = ComponentSize.md,
  this.disabled = false,
  this.required = false,
  this.readOnly = false,
  this.value,
  this.name,
  this.id,
  this.prefix,
  this.suffix,
  this.error,
  this.helperText,
  this.label,
  this.onChanged,
  this.onFocus,
  this.onBlur,
  this.onSubmitted,
  this.onChangeAction,
  this.onSubmitAction,
  this.formId,
  this.fieldName,
  this.attributes,
  this.fullWidth = false,
  this.styles,
  this.decoration,
  super.key,
});