CustomTextFields constructor
const
CustomTextFields({
- Key? key,
- String? hintText,
- TextEditingController? controller,
- int? maxLines,
- int? minLines,
- TextAlign? fieldsTextAlign,
- TextInputType? fieldsInputType,
- FontWeight? hintFontWeight,
- Color? hintColor,
- TextOverflow? hintTextOverflow,
- String? hintTextFontFamily,
- double? hintTextFontSize,
- EdgeInsets? contentPadding,
- Color? focusedBorderColor,
- Color? enabledBorderColor,
- Color? errorBorderColor,
- Color? disabledBorderColor,
- Color? focusErrorBorderColor,
- bool? obscureText = false,
- FocusNode? focusNode,
- void onFieldSubmitted()?,
- TextInputAction? textInputAction,
- String? initialValue,
- FormFieldValidator? validator,
- Widget? prefixIcon,
- Widget? suffixIcon,
- Color? prefixIconColor,
- Color? suffixIconColor,
- dynamic onChanged()?,
- VoidCallback? onPressed,
- double? focusedBorder,
- double? enabledBorder,
- double? errorBorder,
- double? disabledBorder,
- double? focusErrorBorder,
- String? labelText,
- Color? labelColor,
- FontWeight? labelFontWeight,
- TextOverflow? labelTextOverflow,
- String? labelTextFontFamily,
- double? labelTextFontSize,
- bool? filled,
- Color? fillColor,
- 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,
});