CkSearch constructor

const CkSearch({
  1. Key? key,
  2. dynamic onSearch(
    1. String value
    )?,
  3. String? hintText,
  4. TextEditingController? controller,
  5. Widget? prefixIcon,
  6. Widget? suffixIcon,
  7. Widget? suffixBuilder(
    1. TextEditingController controller,
    2. FocusNode focusNode
    )?,
  8. Widget? prefixBuilder(
    1. TextEditingController controller,
    2. FocusNode focusNode
    )?,
  9. Color? borderColor,
  10. Color? backgroundColor,
  11. double? borderRadius,
  12. double borderWidth = 1.2,
  13. CkBorderType borderType = CkBorderType.outline,
  14. double paddingHorizontal = 16,
  15. double paddingVertical = 14,
  16. bool isReadOnly = false,
  17. TextInputAction textInputAction = TextInputAction.search,
  18. int? maxLength,
  19. double? fontSize,
  20. TextStyle? textStyle,
  21. TextStyle? hintStyle,
  22. TextAlign textAlign = TextAlign.left,
  23. VoidCallback? onTap,
  24. dynamic onFocusChanged(
    1. FocusNode focusNode
    )?,
  25. int baseDelayMs = 300,
  26. int incrementMs = 100,
  27. int maxDelayMs = 800,
  28. bool showClearButton = true,
})

Implementation

const CkSearch({
  super.key,
  this.onSearch,
  this.hintText,
  this.controller,
  this.prefixIcon,
  this.suffixIcon,
  this.suffixBuilder,
  this.prefixBuilder,
  this.borderColor,
  this.backgroundColor,
  this.borderRadius,
  this.borderWidth = 1.2,
  this.borderType = CkBorderType.outline,
  this.paddingHorizontal = 16,
  this.paddingVertical = 14,
  this.isReadOnly = false,
  this.textInputAction = TextInputAction.search,
  this.maxLength,
  this.fontSize,
  this.textStyle,
  this.hintStyle,
  this.textAlign = TextAlign.left,
  this.onTap,
  this.onFocusChanged,
  this.baseDelayMs = 300,
  this.incrementMs = 100,
  this.maxDelayMs = 800,
  this.showClearButton = true,
});