CkTextField constructor

const CkTextField({
  1. required CkValidationType validationType,
  2. Key? key,
  3. String? hintText,
  4. String? labelText,
  5. Widget? prefixIcon,
  6. TextEditingController? controller,
  7. TextInputAction textInputAction = TextInputAction.next,
  8. int? maxLength,
  9. String? prefixText,
  10. double paddingHorizontal = 16,
  11. double paddingVertical = 14,
  12. double? borderRadius,
  13. dynamic onSaved(
    1. String value,
    2. TextEditingController controller
    )?,
  14. dynamic onChanged(
    1. String value
    )?,
  15. Color? borderColor,
  16. VoidCallback? onTap,
  17. Widget? suffixIcon,
  18. bool isReadOnly = false,
  19. String? initialText,
  20. bool showActionButton = false,
  21. Widget? actionButtonIcon,
  22. String originalPassword()?,
  23. String? validation(
    1. String? value
    )?,
  24. Color? backgroundColor,
  25. double? borderWidth,
  26. bool showValidationMessage = true,
  27. TextAlign textAlign = TextAlign.left,
  28. PasswordObscureIcon? passwordObscureIcon,
  29. int? maxWords,
  30. TextStyle? hintStyle,
  31. CkBorderType borderType = CkBorderType.outline,
  32. Widget? suffixBuilder(
    1. TextEditingController controller,
    2. FocusNode focusNode
    )?,
  33. Widget? prefixBuilder(
    1. TextEditingController controller,
    2. FocusNode focusNode
    )?,
  34. double? fontSize,
  35. dynamic onFocusChanged(
    1. FocusNode focusNode
    )?,
  36. TextStyle? textStyle,
  37. Widget? footer,
  38. bool? isRequired,
  39. bool enableCapitalization = true,
})

Implementation

const CkTextField({
  required this.validationType,
  super.key,
  this.hintText,
  this.labelText,
  this.prefixIcon,
  this.controller,
  this.textInputAction = TextInputAction.next,
  this.maxLength,
  this.prefixText,
  this.paddingHorizontal = 16,
  this.paddingVertical = 14,
  this.borderRadius,
  this.onSaved,
  this.onChanged,
  this.borderColor,
  this.onTap,
  this.suffixIcon,
  this.isReadOnly = false,
  this.initialText,
  this.showActionButton = false,
  this.actionButtonIcon,
  this.originalPassword,
  this.validation,
  this.backgroundColor,
  this.borderWidth,
  this.showValidationMessage = true,
  this.textAlign = TextAlign.left,
  this.passwordObscureIcon,
  this.maxWords,
  this.hintStyle,
  this.borderType = CkBorderType.outline,
  this.suffixBuilder,
  this.prefixBuilder,
  this.fontSize,
  this.onFocusChanged,
  this.textStyle,
  this.footer,
  this.isRequired,
  this.enableCapitalization = true,
});