CkSearch constructor
const
CkSearch({
- Key? key,
- dynamic onSearch(
- String value
- String? hintText,
- TextEditingController? controller,
- Widget? prefixIcon,
- Widget? suffixIcon,
- Widget? suffixBuilder(
- TextEditingController controller,
- FocusNode focusNode
- Widget? prefixBuilder(
- TextEditingController controller,
- FocusNode focusNode
- Color? borderColor,
- Color? backgroundColor,
- double? borderRadius,
- double borderWidth = 1.2,
- CkBorderType borderType = CkBorderType.outline,
- double paddingHorizontal = 16,
- double paddingVertical = 14,
- bool isReadOnly = false,
- TextInputAction textInputAction = TextInputAction.search,
- int? maxLength,
- double? fontSize,
- TextStyle? textStyle,
- TextStyle? hintStyle,
- TextAlign textAlign = TextAlign.left,
- VoidCallback? onTap,
- dynamic onFocusChanged(
- FocusNode focusNode
- int baseDelayMs = 300,
- int incrementMs = 100,
- int maxDelayMs = 800,
- 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,
});