CustomTextField constructor

const CustomTextField({
  1. Key? key,
  2. double? height,
  3. double? width,
  4. double? borderRadius,
  5. String? hintText,
  6. Color? focusColor,
  7. double? hintSize,
  8. Color? fillColor,
  9. Color? enableBorderColor,
  10. Widget? prefixWidget,
  11. Color? hintColor,
  12. FontWeight? hintFontWeight,
  13. Color? textColor,
  14. double? textSize,
  15. FontWeight? textFontWeight,
  16. String? labelText,
  17. Color? labelColor,
  18. FontWeight? labelFontWeight,
  19. double? labelSize,
  20. String? errorMessage,
  21. ValueChanged<String>? onChanged,
  22. bool isEnable = true,
  23. int? maxLine = 1,
  24. TextEditingController? controller,
  25. double? marginHorizontal,
  26. Widget? suffixIcon,
  27. double? marginVertical,
  28. bool isPassword = false,
  29. bool isLabelSeparated = true,
  30. bool obscureText = false,
  31. bool? isInvalid = false,
  32. FocusNode? focusNode,
  33. TextInputType? keyboardType,
  34. bool isRequired = false,
  35. dynamic onSubmitted(
    1. String
    )?,
  36. double? marginTop,
  37. double? marginLeft,
  38. double? marginRight,
  39. double? marginBottom,
  40. double? borderWidth,
  41. Color? suffixIconColor,
  42. Color? errorColor,
  43. Color? errorFillColor,
  44. TextAlign textAlign = TextAlign.start,
  45. Color? disableBorderColor,
})

Implementation

const CustomTextField({
  Key? key,
  this.height,
  this.width,
  this.borderRadius,
  this.hintText,
  this.focusColor,
  this.hintSize,
  this.fillColor,
  this.enableBorderColor,
  this.prefixWidget,
  this.hintColor,
  this.hintFontWeight,
  this.textColor,
  this.textSize,
  this.textFontWeight,
  this.labelText,
  this.labelColor,
  this.labelFontWeight,
  this.labelSize,
  this.errorMessage,
  this.onChanged,
  this.isEnable = true,
  this.maxLine = 1,
  this.controller,
  this.marginHorizontal,
  this.suffixIcon,
  this.marginVertical,
  this.isPassword = false,
  this.isLabelSeparated = true,
  this.obscureText = false,
  this.isInvalid = false,
  this.focusNode,
  this.keyboardType,
  this.isRequired = false,
  this.onSubmitted,
  this.marginTop,
  this.marginLeft,
  this.marginRight,
  this.marginBottom,
  this.borderWidth,
  this.suffixIconColor,
  this.errorColor,
  this.errorFillColor,
  this.textAlign = TextAlign.start,
  this.disableBorderColor,
}) : super(key: key);