CustomTextField constructor

const CustomTextField({
  1. Key? key,
  2. FocusNode? focusNode,
  3. TextStyle? labelStyle,
  4. OutlineInputBorder? inputBorder,
  5. TextEditingController? controller,
  6. int? maxLength,
  7. String? labelText,
  8. String? hintText,
  9. bool isNewStyle = false,
  10. bool isPassword = false,
  11. String? validator(
    1. String?
    )?,
  12. TextInputType? keyboardType,
  13. bool readOnly = false,
  14. VoidCallback? onTap,
  15. int? maxLines,
  16. EdgeInsets? contentPadding,
  17. Widget? suffixIcon,
  18. bool isFilled = false,
  19. Widget? prefixIcon,
  20. dynamic onSubmitted(
    1. String
    )?,
  21. dynamic onChanged(
    1. String
    )?,
  22. String? initialValue,
  23. BoxConstraints? prefixIconConstraints,
  24. bool? autoFocus = false,
  25. TextInputAction? textInputAction,
  26. TextAlign? textAlign,
  27. String? prefixText,
  28. double? borderRadius,
  29. TextStyle? hintStyle,
  30. AutovalidateMode? autoValidateMode,
  31. Color? titleColor,
  32. List<TextInputFormatter>? inputFormatters,
  33. TextStyle? textStyle,
  34. double minPrefixWidth = 70,
  35. Color? focusedBorderColor,
  36. OutlineInputBorder? errorBorder,
  37. TextStyle? errorStyle,
  38. int? errorMaxlines,
})

Implementation

const CustomTextField({
  super.key,
  this.focusNode,
  this.labelStyle,
  this.inputBorder,
  this.controller,
  this.maxLength,
  this.labelText,
  this.hintText,
  this.isNewStyle = false,
  this.isPassword = false,
  this.validator,
  this.keyboardType,
  this.readOnly = false,
  this.onTap,
  this.maxLines,
  this.contentPadding,
  this.suffixIcon,
  this.isFilled = false,
  this.prefixIcon,
  this.onSubmitted,
  this.onChanged,
  this.initialValue,
  this.prefixIconConstraints,
  this.autoFocus = false,
  this.textInputAction,
  this.textAlign,
  this.prefixText,
  this.borderRadius,
  this.hintStyle,
  this.autoValidateMode,
  this.titleColor,
  this.inputFormatters,
  this.textStyle,
  this.minPrefixWidth = 70,
  this.focusedBorderColor,
  this.errorBorder,
  this.errorStyle,
  this.errorMaxlines,
});