KinTextField constructor

const KinTextField({
  1. Key? key,
  2. String? hint,
  3. String? label,
  4. String? errorText,
  5. ValueChanged<String>? onChanged,
  6. ValueChanged<String>? onSubmitted,
  7. TextEditingController? controller,
  8. bool obscureText = false,
  9. bool enabled = true,
  10. TextInputType? keyboardType,
  11. int maxLines = 1,
  12. Widget? prefix,
  13. Widget? suffix,
  14. FocusNode? focusNode,
  15. int? maxLength,
  16. bool showCharCounter = false,
  17. List<TextInputFormatter>? inputFormatters,
})

Implementation

const KinTextField({
  super.key,
  this.hint,
  this.label,
  this.errorText,
  this.onChanged,
  this.onSubmitted,
  this.controller,
  this.obscureText = false,
  this.enabled = true,
  this.keyboardType,
  this.maxLines = 1,
  this.prefix,
  this.suffix,
  this.focusNode,
  this.maxLength,
  this.showCharCounter = false,
  this.inputFormatters,
});