GFSearchBar<T> constructor
const
GFSearchBar<T> ({
- required List<
T> searchList, - required QueryListItemBuilder<
T> overlaySearchListItemBuilder, - required QueryBuilder<
T> searchQueryBuilder, - Key? key,
- Color? textColor,
- Color? circularProgressIndicatorColor,
- TextEditingController? controller,
- OnItemSelected<
T> ? onItemSelected, - bool hideSearchBoxWhenItemSelected = false,
- double? overlaySearchListHeight,
- Widget? noItemsFoundWidget,
- InputDecoration? searchBoxInputDecoration,
search bar with various customization option
Implementation
const GFSearchBar({
required this.searchList,
required this.overlaySearchListItemBuilder,
required this.searchQueryBuilder,
Key? key,
this.textColor,
this.circularProgressIndicatorColor,
this.controller,
this.onItemSelected,
this.hideSearchBoxWhenItemSelected = false,
this.overlaySearchListHeight,
this.noItemsFoundWidget,
this.searchBoxInputDecoration,
}) : super(key: key);