KatTextField constructor

const KatTextField({
  1. Key? key,
  2. String? label,
  3. String? hintText,
  4. String? suffixText,
  5. String? initialValue,
  6. Icon? icon,
  7. Widget? suffixIcon,
  8. bool autovalidate = false,
  9. bool readOnly = false,
  10. bool isRequired = false,
  11. int? maxLines,
  12. int? maxLength,
  13. TextStyle? style,
  14. TextStyle? suffixStyle,
  15. TextAlign textAlign = TextAlign.start,
  16. TextEditingController? controller,
  17. TextInputType? keyboardType = TextInputType.text,
  18. InputDecoration? decoration,
  19. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  20. List<TextInputFormatter>? inputFormatters,
  21. Function? onChanged,
  22. Function? validator,
  23. Function? onTap,
  24. Function? onFieldSubmitted,
})

Implementation

const KatTextField({
  super.key,
  this.label,
  this.hintText,
  this.suffixText,
  this.initialValue,
  this.icon,
  this.suffixIcon,
  this.autovalidate = false,
  this.readOnly = false,
  this.isRequired = false,
  this.maxLines,
  this.maxLength,
  this.style,
  this.suffixStyle,
  this.textAlign = TextAlign.start,
  this.controller,
  this.keyboardType = TextInputType.text,
  this.decoration,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.inputFormatters,
  this.onChanged,
  this.validator,
  this.onTap,
  this.onFieldSubmitted,
});