FSearch constructor

FSearch({
  1. Key? key,
  2. String? text,
  3. double? width,
  4. double? height,
  5. FSearchCorner? corner,
  6. Color? strokeColor,
  7. double? strokeWidth,
  8. FSearchCornerStyle cornerStyle = FSearchCornerStyle.round,
  9. Color? backgroundColor,
  10. Gradient? gradient,
  11. double? shadowBlur,
  12. Color? shadowColor,
  13. Offset? shadowOffset,
  14. Color? cursorColor,
  15. double? cursorWidth = 2.0,
  16. double? cursorRadius = 0.0,
  17. TextStyle? style,
  18. TextStyle? hintStyle,
  19. List<Widget>? prefixes,
  20. List<Widget>? suffixes,
  21. EdgeInsets? padding = EdgeInsets.zero,
  22. EdgeInsets? margin,
  23. List<String>? hints,
  24. Duration hintSwitchDuration = const Duration(milliseconds: 3000),
  25. Duration hintSwitchAnimDuration = const Duration(milliseconds: 800),
  26. bool hintSwitchEnable = false,
  27. bool center = false,
  28. bool? stopHintSwitchOnFocus = true,
  29. Widget? hintPrefix,
  30. FSearchController? controller,
  31. FSearchAnimationType? hintSwitchType = FSearchAnimationType.Scroll,
  32. ValueChanged<String>? onSearch,
  33. bool enable = true,
  34. VoidCallback? onTap,
})

Implementation

FSearch({
  Key? key,
  this.text,
  this.width,
  this.height,
  this.corner,
  this.strokeColor,
  this.strokeWidth,
  this.cornerStyle = FSearchCornerStyle.round,
  this.backgroundColor,
  this.gradient,
  this.shadowBlur,
  this.shadowColor,
  this.shadowOffset,
  this.cursorColor,
  this.cursorWidth = 2.0,
  this.cursorRadius = 0.0,
  this.style,
  this.hintStyle,
  this.prefixes,
  this.suffixes,
  this.padding = EdgeInsets.zero,
  this.margin,
  this.hints,
  this.hintSwitchDuration = const Duration(milliseconds: 3000),
  this.hintSwitchAnimDuration = const Duration(milliseconds: 800),
  this.hintSwitchEnable = false,
  this.center = false,
  this.stopHintSwitchOnFocus = true,
  this.hintPrefix,
  this.controller,
  this.hintSwitchType = FSearchAnimationType.Scroll,
  this.onSearch,
  this.enable = true,
  this.onTap,
}) : super(key: key);