Skip to content
pubscout

flutter_searchbox

4.0.1, released 2 years ago by appbase.io

Provides declarative API and UI widgets to query Elasticsearch and OpenSearch.

$ flutter pub add flutter_searchbox
Source repository

What it does

Connects Flutter applications to Elasticsearch and OpenSearch backends using a declarative API. It binds UI widgets with different types of search queries and includes features like voice search, recent searches, and popular suggestions.

AI-written summary of version 4.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Building a search interface backed by Elasticsearch or OpenSearch
  • Integrating ReactiveSearch.io into a Flutter application

Skip it when

  • Not using Elasticsearch or OpenSearch as a backend
  • Needing a simple local SQLite or key-value storage

Strengths

  • Declarative API for Elasticsearch and OpenSearch queries
  • Built-in support for voice search and autosuggestions
  • Reactive UI bindings through SearchWidgetConnector

Weaknesses

  • Tied specifically to Elasticsearch, OpenSearch, and ReactiveSearch.io
  • Limited to specific search ecosystem patterns

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
3

Requires adding flutter_searchbox and searchbase to pubspec.yaml and wrapping the app with SearchBaseProvider.

final searchbaseInstance = SearchBase('index', 'https://domain', 'credentials');

SearchBaseProvider(
  searchbase: searchbaseInstance,
  child: MaterialApp(
    home: Scaffold(
      body: SearchWidgetConnector(
        id: 'result-widget',
        dataField: 'title',
        builder: (context, searchController) => Container(),
      ),
    ),
  ),
);

Alternatives

Packages that do the same job and could replace flutter_searchbox.

Works with

Packages commonly used together with flutter_searchbox: ones it builds on, ones built on it, and its own family.