CustomTextFields constructor

const CustomTextFields({
  1. Key? key,
  2. String? hintText,
  3. TextEditingController? controller,
  4. int? maxLines,
  5. int? minLines,
  6. TextAlign? fieldsTextAlign,
  7. TextInputType? fieldsInputType,
  8. FontWeight? hintFontWeight,
  9. Color? hintColor,
  10. TextOverflow? hintTextOverflow,
  11. String? hintTextFontFamily,
  12. double? hintTextFontSize,
  13. EdgeInsets? contentPadding,
  14. Color? focusedBorderColor,
  15. Color? enabledBorderColor,
  16. Color? errorBorderColor,
  17. Color? disabledBorderColor,
  18. Color? focusErrorBorderColor,
  19. bool? obscureText = false,
  20. FocusNode? focusNode,
  21. void onFieldSubmitted(
    1. String
    )?,
  22. TextInputAction? textInputAction,
  23. String? initialValue,
  24. FormFieldValidator? validator,
  25. Widget? prefixIcon,
  26. Widget? suffixIcon,
  27. Color? prefixIconColor,
  28. Color? suffixIconColor,
  29. dynamic onChanged(
    1. String
    )?,
  30. VoidCallback? onPressed,
  31. double? focusedBorder,
  32. double? enabledBorder,
  33. double? errorBorder,
  34. double? disabledBorder,
  35. double? focusErrorBorder,
  36. String? labelText,
  37. Color? labelColor,
  38. FontWeight? labelFontWeight,
  39. TextOverflow? labelTextOverflow,
  40. String? labelTextFontFamily,
  41. double? labelTextFontSize,
  42. bool? filled,
  43. Color? fillColor,
  44. Color? textColor,
})

Implementation

const CustomTextFields({
  super.key,
  this.hintText,
  this.controller,
  this.maxLines,
  this.minLines,
  this.fieldsTextAlign,
  this.fieldsInputType,
  //  this.obscureCharacter,
  this.hintFontWeight,
  this.hintColor,
  this.hintTextOverflow,
  this.hintTextFontFamily,
  this.hintTextFontSize,
  this.contentPadding,
  this.focusedBorderColor,
  this.enabledBorderColor,
  this.errorBorderColor,
  this.disabledBorderColor,
  this.focusErrorBorderColor,
  this.obscureText = false,
  this.focusNode,
  this.onFieldSubmitted,
  this.textInputAction,
  this.initialValue,
  this.validator,
  this.prefixIcon,
  this.suffixIcon,
  this.prefixIconColor,
  this.suffixIconColor,
  this.onChanged,
  this.onPressed,
  this.focusedBorder,
  this.enabledBorder,
  this.errorBorder,
  this.disabledBorder,
  this.focusErrorBorder,
  this.labelText,
  this.labelColor,
  this.labelFontWeight,
  this.labelTextOverflow,
  this.labelTextFontFamily,
  this.labelTextFontSize,
  this.filled,
  this.fillColor,
  this.textColor,
});