CustomTextField constructor

const CustomTextField({
  1. Key? key,
  2. TextEditingController? controller,
  3. int? maxlines,
  4. int? maxLength,
  5. String? label,
  6. String? labelAbove,
  7. bool? readOnly,
  8. TextInputType? textInputType,
  9. bool isObscureText = false,
  10. String? hintText,
  11. List<TextInputFormatter>? inputFormatters,
  12. TextStyle? hintTextStyle,
  13. OutlineInputBorder? enabledBorder,
  14. Widget? suffixIcon,
  15. Widget? prefixIcon,
  16. String? validator(
    1. String?
    )?,
  17. dynamic onChanged(
    1. String
    )?,
  18. Color? fillColor,
  19. VoidCallback? onTap,
  20. String? errorMessage,
})

Creates a CustomTextField.

controller manages the text input. hintText is shown when the field is empty.

Implementation

const CustomTextField({
  super.key,
  this.controller,
  this.maxlines,
  this.maxLength,
  this.label,
  this.labelAbove,
  this.readOnly,
  this.textInputType,
  this.isObscureText = false,
  this.hintText,
  this.inputFormatters,
  this.hintTextStyle,
  this.enabledBorder,
  this.suffixIcon,
  this.prefixIcon,
  this.validator,
  this.onChanged,
  this.fillColor,
  this.onTap,
  this.errorMessage,
});