FitTextInput constructor

const FitTextInput({
  1. Key? key,
  2. TextEditingController? controller,
  3. bool autofocus = false,
  4. TextInputAction? inputAction,
  5. int maxLength = _defaultMaxLength,
  6. required String label,
  7. bool markAsRequired = false,
  8. String hint = "",
  9. bool hideValue = false,
  10. Widget? suffix,
  11. FocusNode? focusNode,
  12. AutovalidateMode validationMode = AutovalidateMode.disabled,
  13. TextInputType keyboardType = TextInputType.text,
  14. TextCapitalization capitalization = TextCapitalization.none,
  15. List<TextInputFormatter>? formatters,
  16. String? validation(
    1. String?
    )?,
  17. dynamic onFieldSubmitted(
    1. String
    )?,
  18. dynamic onChange(
    1. String
    )?,
  19. EdgeInsets? margin,
  20. EdgeInsets? padding,
  21. int? maxLines = 1,
  22. int? minLines,
  23. bool expand = false,
  24. double? width,
  25. double? height,
  26. bool? readonly,
})

Creates a new FitTextInput.

Implementation

const FitTextInput({
  super.key,
  this.controller,
  this.autofocus = false,
  this.inputAction,
  this.maxLength = _defaultMaxLength,
  required this.label,
  this.markAsRequired = false,
  this.hint = "",
  this.hideValue = false,
  this.suffix,
  this.focusNode,
  this.validationMode = AutovalidateMode.disabled,
  this.keyboardType = TextInputType.text,
  this.capitalization = TextCapitalization.none,
  this.formatters,
  this.validation,
  this.onFieldSubmitted,
  this.onChange,
  this.margin,
  this.padding,
  this.maxLines = 1,
  this.minLines,
  this.expand = false,
  this.width,
  this.height,
  this.readonly,
});