TkfInputField constructor

const TkfInputField({
  1. Key? key,
  2. required Key testKey,
  3. required String label,
  4. TextEditingController? ctr,
  5. String? validator(
    1. String?
    )?,
  6. List<TextInputFormatter>? formatters,
  7. bool isEnabled = true,
  8. AutovalidateMode? mode,
  9. Function? onButton,
  10. Function? onChanged,
  11. IconButtonType? buttonType = IconButtonType.none,
  12. Key? buttonKey,
  13. String? hint,
  14. Function? onTap,
  15. bool readOnly = false,
  16. Color? obscureColor,
  17. Color? cursorColor,
  18. InputBorder? readOnlyBorder,
  19. TextStyle? readOnlyLabelStyle = kLabelStyle,
  20. TextStyle? hintStyle,
  21. Widget? iconButton,
  22. TextInputType? keyboardType = TextInputType.emailAddress,
  23. dynamic onSubmitted(
    1. String
    )?,
  24. FocusNode? focus,
  25. TextInputAction? inputAction,
  26. 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,
});