CommonTextInputField constructor
const
CommonTextInputField({
- Key? key,
- required TextEditingController controller,
- required String hintText,
- TextInputType? textInputType,
- int? maxLength,
- required dynamic onChanged(),
- String? validator()?,
- bool isShowPrefixIcon = false,
- Widget? prefixIcon,
- Widget? prefix,
- bool isShowSuffixIcon = false,
- Widget? suffixIcon,
- FocusNode? focusNode,
- EdgeInsetsGeometry? contentPadding,
- Color? fillColor,
- Color? borderColor,
- Color? hintTextColor,
- double? height,
- EdgeInsetsGeometry? padding,
- double? borderRadius,
- double? textSize,
- double? iconSize,
- bool required = false,
- bool isDisabled = false,
- bool isAteriskRequired = true,
- bool showLabel = true,
- int maxLines = 1,
- Color? textStyleColor,
- FontWeight? fontWeight,
- double? fontSize,
- bool enableInteractiveSelection = true,
- bool isHalf = false,
- bool isDate = false,
Implementation
const CommonTextInputField({
super.key,
required this.controller,
required this.hintText,
this.textInputType,
this.maxLength,
required this.onChanged,
this.validator,
this.isShowPrefixIcon = false,
this.prefixIcon,
this.prefix,
this.isShowSuffixIcon = false,
this.suffixIcon,
this.focusNode,
this.contentPadding,
this.fillColor,
this.borderColor,
this.hintTextColor,
this.height,
this.padding,
this.borderRadius,
this.textSize,
this.iconSize,
this.required = false,
this.isDisabled = false,
this.isAteriskRequired = true,
this.showLabel = true,
this.maxLines = 1,
this.textStyleColor,
this.fontWeight,
this.fontSize,
this.enableInteractiveSelection = true,
this.isHalf = false,
this.isDate = false,
});