FormItemTextField constructor

const FormItemTextField({
  1. TextEditingController? controller,
  2. TextInputType keyboardType = TextInputType.text,
  3. int? maxLength,
  4. VoidCallback? onTap,
  5. int? minLength,
  6. EdgeInsetsGeometry? contentPadding,
  7. int? maxLines,
  8. int minLines = 1,
  9. InputBorder? border,
  10. InputBorder? disabledBorder,
  11. Color? backgroundColor,
  12. bool expands = false,
  13. String? hintText,
  14. String? labelText,
  15. String? lengthErrorText = "",
  16. Widget? prefix,
  17. Widget? suffix,
  18. String? prefixText,
  19. String? suffixText,
  20. Widget? prefixIcon,
  21. BoxConstraints? prefixIconConstraints,
  22. Widget? suffixIcon,
  23. BoxConstraints? suffixIconConstraints,
  24. bool dense = false,
  25. EdgeInsetsGeometry? padding,
  26. List<String> suggestion = const [],
  27. bool allowEmpty = false,
  28. bool enabled = true,
  29. bool readOnly = false,
  30. bool obscureText = false,
  31. String? counterText = "",
  32. void onDeleteSuggestion(
    1. String value
    )?,
  33. String? validator(
    1. String? value
    )?,
  34. List<TextInputFormatter>? inputFormatters,
  35. void onSaved(
    1. String? value
    )?,
  36. void onSubmitted(
    1. String? value
    )?,
  37. void onChanged(
    1. String? value
    )?,
  38. bool? showCursor,
  39. FocusNode? focusNode,
  40. Color? color,
  41. double? fontSize,
  42. Color? subColor,
  43. double? height,
  44. String? errorText,
  45. TextAlign textAlign = TextAlign.start,
  46. TextAlignVertical? textAlignVertical,
})

Implementation

const FormItemTextField({
  this.controller,
  this.keyboardType = TextInputType.text,
  this.maxLength,
  this.onTap,
  this.minLength,
  this.contentPadding,
  this.maxLines,
  this.minLines = 1,
  this.border,
  this.disabledBorder,
  this.backgroundColor,
  this.expands = false,
  this.hintText,
  this.labelText,
  this.lengthErrorText = "",
  this.prefix,
  this.suffix,
  this.prefixText,
  this.suffixText,
  this.prefixIcon,
  this.prefixIconConstraints,
  this.suffixIcon,
  this.suffixIconConstraints,
  this.dense = false,
  this.padding,
  this.suggestion = const [],
  this.allowEmpty = false,
  this.enabled = true,
  this.readOnly = false,
  this.obscureText = false,
  this.counterText = "",
  this.onDeleteSuggestion,
  this.validator,
  this.inputFormatters,
  this.onSaved,
  this.onSubmitted,
  this.onChanged,
  this.showCursor,
  this.focusNode,
  this.color,
  this.fontSize,
  this.subColor,
  this.height,
  this.errorText,
  this.textAlign = TextAlign.start,
  this.textAlignVertical,
});