ComSearch constructor

const ComSearch({
  1. Key? key,
  2. TextEditingController? controller,
  3. ValueChanged<String>? onChanged,
  4. ValueChanged<String>? onSubmitted,
  5. VoidCallback? onTap,
  6. String? placeholder,
  7. bool autofocus = false,
  8. bool enabled = true,
  9. double? radius,
  10. Color? background,
  11. Widget prefix = const Icon(CupertinoIcons.search),
  12. Icon suffix = const Icon(CupertinoIcons.xmark_circle_fill),
  13. OverlayVisibilityMode? suffixMode = OverlayVisibilityMode.editing,
  14. VoidCallback? onSuffixTap,
  15. 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,
});