TkfInputField constructor
const
TkfInputField({
- Key? key,
- required Key testKey,
- required String label,
- TextEditingController? ctr,
- String? validator()?,
- List<
TextInputFormatter> ? formatters, - bool isEnabled = true,
- AutovalidateMode? mode,
- Function? onButton,
- Function? onChanged,
- IconButtonType? buttonType = IconButtonType.none,
- Key? buttonKey,
- String? hint,
- Function? onTap,
- bool readOnly = false,
- Color? obscureColor,
- Color? cursorColor,
- InputBorder? readOnlyBorder,
- TextStyle? readOnlyLabelStyle = kLabelStyle,
- TextStyle? hintStyle,
- Widget? iconButton,
- TextInputType? keyboardType = TextInputType.emailAddress,
- dynamic onSubmitted()?,
- FocusNode? focus,
- TextInputAction? inputAction,
- TextCapitalization? textCapitalization,
Implementation
const TkfInputField({
super.key,
required this.testKey,
required this.label,
this.ctr,
this.validator,
this.formatters,
this.isEnabled = true,
this.mode,
this.onButton,
this.onChanged,
this.buttonType = IconButtonType.none,
this.buttonKey,
this.hint,
this.onTap,
this.readOnly = false,
this.obscureColor,
this.cursorColor,
this.readOnlyBorder,
this.readOnlyLabelStyle = kLabelStyle,
this.hintStyle,
this.iconButton,
this.keyboardType = TextInputType.emailAddress,
this.onSubmitted,
this.focus,
this.inputAction,
this.textCapitalization,
});