CkTextField constructor
const
CkTextField({
- required CkValidationType validationType,
- Key? key,
- String? hintText,
- String? labelText,
- Widget? prefixIcon,
- TextEditingController? controller,
- TextInputAction textInputAction = TextInputAction.next,
- int? maxLength,
- String? prefixText,
- double paddingHorizontal = 16,
- double paddingVertical = 14,
- double? borderRadius,
- dynamic onSaved(
- String value,
- TextEditingController controller
- dynamic onChanged(
- String value
- Color? borderColor,
- VoidCallback? onTap,
- Widget? suffixIcon,
- bool isReadOnly = false,
- String? initialText,
- bool showActionButton = false,
- Widget? actionButtonIcon,
- String originalPassword()?,
- String? validation(
- String? value
- Color? backgroundColor,
- double? borderWidth,
- bool showValidationMessage = true,
- TextAlign textAlign = TextAlign.left,
- PasswordObscureIcon? passwordObscureIcon,
- int? maxWords,
- TextStyle? hintStyle,
- CkBorderType borderType = CkBorderType.outline,
- Widget? suffixBuilder(
- TextEditingController controller,
- FocusNode focusNode
- Widget? prefixBuilder(
- TextEditingController controller,
- FocusNode focusNode
- double? fontSize,
- dynamic onFocusChanged(
- FocusNode focusNode
- TextStyle? textStyle,
- bool? isRequired,
- 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,
});