ExpandableSearchBar constructor
const
ExpandableSearchBar({
- Key? key,
- required void onSearch(),
- void onChanged()?,
- String? hintText,
- double? expandedWidth,
- double? collapsedWidth,
- double? expandedWidthFactor,
- double? iconSize,
- Color? iconColor,
- Color? iconBackgroundColor,
- double? iconPadding,
- IconData? iconData,
- SearchBarStyle style = SearchBarStyle.rounded,
- Duration? animationDuration,
- Curve? animationCurve,
- bool showClearButton = true,
- 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,
});