GFSearchBar<T> constructor

const GFSearchBar<T>({
  1. required List<T> searchList,
  2. required QueryListItemBuilder<T> overlaySearchListItemBuilder,
  3. required QueryBuilder<T> searchQueryBuilder,
  4. Key? key,
  5. Color? textColor,
  6. Color? circularProgressIndicatorColor,
  7. TextEditingController? controller,
  8. OnItemSelected<T>? onItemSelected,
  9. bool hideSearchBoxWhenItemSelected = false,
  10. double? overlaySearchListHeight,
  11. Widget? noItemsFoundWidget,
  12. 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);