Skip to main content
This guide walks you through setting up Meilisearch with Dart and Flutter.

Prerequisites

  • Dart 3.0 or higher (or Flutter 3.0+)
  • A Meilisearch instance (Cloud or self-hosted)

1. Install the SDK

Add the dependency to your pubspec.yaml:
Then run:

2. Connect to Meilisearch

Set your environment variables:
Get a free Cloud instance →

3. Add documents

5. Search with filters

First, configure filterable attributes:
Then search with filters:

Full example

Flutter example

Next steps

Full-text search

Configure ranking and relevancy

Filtering

Add filters and facets

AI-powered search

Add semantic search

API reference

Explore all search parameters

Resources