ComSearch constructor
const
ComSearch({
- Key? key,
- TextEditingController? controller,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - VoidCallback? onTap,
- String? placeholder,
- bool autofocus = false,
- bool enabled = true,
- double? radius,
- Color? background,
- Widget prefix = const Icon(CupertinoIcons.search),
- Icon suffix = const Icon(CupertinoIcons.xmark_circle_fill),
- OverlayVisibilityMode? suffixMode = OverlayVisibilityMode.editing,
- VoidCallback? onSuffixTap,
- EdgeInsets? padding,
Implementation
const ComSearch({
super.key,
this.controller,
this.onChanged,
this.onSubmitted,
this.onTap,
this.placeholder,
this.autofocus = false,
this.enabled = true,
this.radius,
this.background,
this.prefix = const Icon(CupertinoIcons.search),
this.suffix = const Icon(CupertinoIcons.xmark_circle_fill),
this.suffixMode = OverlayVisibilityMode.editing,
this.onSuffixTap,
this.padding,
});