KitTextField constructor
const
KitTextField({
- required TextEditingController controller,
- bool readOnly = false,
- List<
TextInputFormatter> formatters = const [], - String? placeholder,
- String? label,
- String? helper,
- ValueChanged<
String> ? onChanged, - double size = kDefaultKitFieldSize,
- int? maxLines,
- double? maxHeight,
- VoidCallback? onPressed,
- bool isChanged = false,
- bool isRequired = false,
- FormFieldValidator<
String?> ? validator, - FocusNode? focusNode,
- InputDecoration? decoration,
- IconData? suffixIcon,
- IconData? prefixIcon,
- Widget? suffix,
- Widget? prefix,
- Key? fieldKey,
- AutovalidateMode? autovalidateMode,
- Key? key,
Implementation
const KitTextField({
required this.controller,
this.readOnly = false,
this.formatters = const [],
this.placeholder,
this.label,
this.helper,
this.onChanged,
this.size = kDefaultKitFieldSize,
this.maxLines,
this.maxHeight,
this.onPressed,
this.isChanged = false,
this.isRequired = false,
this.validator,
this.focusNode,
this.decoration,
this.suffixIcon,
this.prefixIcon,
this.suffix,
this.prefix,
this.fieldKey,
this.autovalidateMode,
super.key,
});