CustomTextField constructor
const
CustomTextField({
- Key? key,
- double? height,
- double? width,
- double? borderRadius,
- String? hintText,
- Color? focusColor,
- double? hintSize,
- Color? fillColor,
- Color? enableBorderColor,
- Widget? prefixWidget,
- Color? hintColor,
- FontWeight? hintFontWeight,
- Color? textColor,
- double? textSize,
- FontWeight? textFontWeight,
- String? labelText,
- Color? labelColor,
- FontWeight? labelFontWeight,
- double? labelSize,
- String? errorMessage,
- ValueChanged<
String> ? onChanged, - bool isEnable = true,
- int? maxLine = 1,
- TextEditingController? controller,
- double? marginHorizontal,
- Widget? suffixIcon,
- double? marginVertical,
- bool isPassword = false,
- bool isLabelSeparated = true,
- bool obscureText = false,
- bool? isInvalid = false,
- FocusNode? focusNode,
- TextInputType? keyboardType,
- bool isRequired = false,
- dynamic onSubmitted()?,
- double? marginTop,
- double? marginLeft,
- double? marginRight,
- double? marginBottom,
- double? borderWidth,
- Color? suffixIconColor,
- Color? errorColor,
- Color? errorFillColor,
- TextAlign textAlign = TextAlign.start,
- 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);