CommonTextField constructor

const CommonTextField({
  1. Key? key,
  2. String? label,
  3. String? hint,
  4. String? errorText,
  5. TextEditingController? controller,
  6. String? validator(
    1. String?
    )?,
  7. void onChanged(
    1. String
    )?,
  8. void onSubmitted(
    1. String
    )?,
  9. TextInputType keyboardType = TextInputType.text,
  10. TextInputAction textInputAction = TextInputAction.next,
  11. bool obscureText = false,
  12. bool readOnly = false,
  13. bool enabled = true,
  14. int maxLines = 1,
  15. int? maxLength,
  16. Widget? prefixIcon,
  17. Widget? suffixIcon,
  18. List<TextInputFormatter>? inputFormatters,
  19. FocusNode? focusNode,
  20. EdgeInsetsGeometry? contentPadding,
  21. bool autofocus = false,
  22. TextStyle? labelStyle,
  23. TextStyle? style,
  24. TextStyle? hintStyle,
  25. InputBorder? border,
  26. InputBorder? enabledBorder,
  27. InputBorder? focusedBorder,
  28. InputBorder? errorBorder,
  29. Color? fillColor,
  30. bool? filled,
})

Implementation

const CommonTextField({
  super.key,
  this.label,
  this.hint,
  this.errorText,
  this.controller,
  this.validator,
  this.onChanged,
  this.onSubmitted,
  this.keyboardType = TextInputType.text,
  this.textInputAction = TextInputAction.next,
  this.obscureText = false,
  this.readOnly = false,
  this.enabled = true,
  this.maxLines = 1,
  this.maxLength,
  this.prefixIcon,
  this.suffixIcon,
  this.inputFormatters,
  this.focusNode,
  this.contentPadding,
  this.autofocus = false,
  this.labelStyle,
  this.style,
  this.hintStyle,
  this.border,
  this.enabledBorder,
  this.focusedBorder,
  this.errorBorder,
  this.fillColor,
  this.filled,
});