MainTextField constructor

const MainTextField({
  1. Key? key,
  2. String? hintText,
  3. Widget? suffixIcon,
  4. Widget? prefixIcon,
  5. bool? readOnly,
  6. bool? enabled,
  7. TextEditingController? controller,
  8. void onTap()?,
  9. String? validator(
    1. String?
    )?,
  10. TextStyle? style,
  11. InputBorder? border,
  12. InputBorder? disabledBorder,
  13. InputBorder? enabledBorder,
  14. InputBorder? errorBorder,
  15. InputBorder? focusedBorder,
  16. InputBorder? focusedErrorBorder,
  17. TextStyle? hintStyle,
  18. bool? obscureText,
  19. EdgeInsetsGeometry? contentPadding,
  20. int? minLines = 1,
})

Implementation

const MainTextField(
    {super.key,
    this.hintText,
    this.suffixIcon,
    this.prefixIcon,
    this.readOnly,
    this.enabled,
    this.controller,
    this.onTap,
    this.validator,
    this.style,
    this.border,
    this.disabledBorder,
    this.enabledBorder,
    this.errorBorder,
    this.focusedBorder,
    this.focusedErrorBorder,
    this.hintStyle,
    this.obscureText,
    this.contentPadding,
    this.minLines = 1});