KatTextField constructor
const
KatTextField({
- Key? key,
- String? label,
- String? hintText,
- String? suffixText,
- String? initialValue,
- Icon? icon,
- Widget? suffixIcon,
- bool autovalidate = false,
- bool readOnly = false,
- bool isRequired = false,
- int? maxLines,
- int? maxLength,
- TextStyle? style,
- TextStyle? suffixStyle,
- TextAlign textAlign = TextAlign.start,
- TextEditingController? controller,
- TextInputType? keyboardType = TextInputType.text,
- InputDecoration? decoration,
- EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
- List<
TextInputFormatter> ? inputFormatters, - Function? onChanged,
- Function? validator,
- Function? onTap,
- 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,
});