CustomTextFormField constructor

const CustomTextFormField({
  1. Key? key,
  2. Alignment? alignment,
  3. double? width,
  4. EdgeInsetsGeometry? margin,
  5. TextEditingController? controller,
  6. FocusNode? focusNode,
  7. bool? autofocus = false,
  8. TextStyle? textStyle,
  9. bool? obscureText = false,
  10. TextInputAction? textInputAction = TextInputAction.next,
  11. TextInputType? textInputType = TextInputType.text,
  12. int? minLines,
  13. int? maxLines,
  14. String? hintText,
  15. TextStyle? hintStyle,
  16. Widget? prefix,
  17. BoxConstraints? prefixConstraints,
  18. Widget? suffix,
  19. BoxConstraints? suffixConstraints,
  20. EdgeInsets? contentPadding,
  21. InputBorder? borderDecoration,
  22. Color? fillColor,
  23. bool? filled = true,
  24. FormFieldValidator<String>? validator,
  25. dynamic onChanged(
    1. String
    )?,
  26. String? initialValue,
})

Implementation

const CustomTextFormField({
  super.key,
  this.alignment,
  this.width,
  this.margin,
  this.controller,
  this.focusNode,
  this.autofocus = false,
  this.textStyle,
  this.obscureText = false,
  this.textInputAction = TextInputAction.next,
  this.textInputType = TextInputType.text,
  this.minLines,
  this.maxLines,
  this.hintText,
  this.hintStyle,
  this.prefix,
  this.prefixConstraints,
  this.suffix,
  this.suffixConstraints,
  this.contentPadding,
  this.borderDecoration,
  this.fillColor,
  this.filled = true,
  this.validator,
  this.onChanged,
  this.initialValue
});