ExpandableSearchBar constructor

const ExpandableSearchBar({
  1. Key? key,
  2. required void onSearch(
    1. String
    ),
  3. void onChanged(
    1. String
    )?,
  4. String? hintText,
  5. double? expandedWidth,
  6. double? collapsedWidth,
  7. double? expandedWidthFactor,
  8. double? iconSize,
  9. Color? iconColor,
  10. Color? iconBackgroundColor,
  11. double? iconPadding,
  12. IconData? iconData,
  13. SearchBarStyle style = SearchBarStyle.rounded,
  14. Duration? animationDuration,
  15. Curve? animationCurve,
  16. bool showClearButton = true,
  17. bool collapseOnUnfocus = true,
})

Implementation

const ExpandableSearchBar({
  super.key,
  required this.onSearch,
  this.onChanged,
  this.hintText,
  this.expandedWidth,
  this.collapsedWidth,
  this.expandedWidthFactor,
  this.iconSize,
  this.iconColor,
  this.iconBackgroundColor,
  this.iconPadding,
  this.iconData,
  this.style = SearchBarStyle.rounded,
  this.animationDuration,
  this.animationCurve,
  this.showClearButton = true,
  this.collapseOnUnfocus = true,
});