CustomTextFormField constructor
CustomTextFormField({
- TextFormFieldShape? shape,
- TextFormFieldPadding? padding,
- TextFormFieldVariant? variant,
- TextFormFieldFontStyle? fontStyle,
- Alignment? alignment,
- double? width,
- EdgeInsetsGeometry? margin,
- TextEditingController? controller,
- FocusNode? focusNode,
- bool? isObscureText = false,
- TextInputAction? textInputAction = TextInputAction.next,
- TextInputType? textInputType = TextInputType.text,
- int? maxLines,
- String? hintText,
- Widget? prefix,
- BoxConstraints? prefixConstraints,
- Widget? suffix,
- BoxConstraints? suffixConstraints,
- bool enabled = true,
- dynamic onChanged,
- String? trueHintText,
- bool disabled = false,
- dynamic inputFormatters,
- FormFieldValidator<
String> ? validator, - String color = "#29b3a6",
- bool autofocus = false,
Implementation
CustomTextFormField(
{this.shape,
this.padding,
this.variant,
this.fontStyle,
this.alignment,
this.width,
this.margin,
this.controller,
this.focusNode,
this.isObscureText = false,
this.textInputAction = TextInputAction.next,
this.textInputType = TextInputType.text,
this.maxLines,
this.hintText,
this.prefix,
this.prefixConstraints,
this.suffix,
this.suffixConstraints,
this.enabled = true,
this.onChanged,
this.trueHintText,
this.disabled = false,
this.inputFormatters,
this.validator, this.color="#29b3a6", this.autofocus=false});