CommonTextInputField constructor

const CommonTextInputField({
  1. Key? key,
  2. required TextEditingController controller,
  3. required String hintText,
  4. TextInputType? textInputType,
  5. int? maxLength,
  6. required dynamic onChanged(
    1. String
    ),
  7. String? validator(
    1. String?
    )?,
  8. bool isShowPrefixIcon = false,
  9. Widget? prefixIcon,
  10. Widget? prefix,
  11. bool isShowSuffixIcon = false,
  12. Widget? suffixIcon,
  13. FocusNode? focusNode,
  14. EdgeInsetsGeometry? contentPadding,
  15. Color? fillColor,
  16. Color? borderColor,
  17. Color? hintTextColor,
  18. double? height,
  19. EdgeInsetsGeometry? padding,
  20. double? borderRadius,
  21. double? textSize,
  22. double? iconSize,
  23. bool required = false,
  24. bool isDisabled = false,
  25. bool isAteriskRequired = true,
  26. bool showLabel = true,
  27. int maxLines = 1,
  28. Color? textStyleColor,
  29. FontWeight? fontWeight,
  30. double? fontSize,
  31. bool enableInteractiveSelection = true,
  32. bool isHalf = false,
  33. 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,
});