supabase/supabase-flutter
supabase/supabase-flutter has 1,045 GitHub stars and 313 forks. GitHot measured +1 stars in 24 hours and 0 in 7 days. Last checked 2026-11-12 08:19 UTC. Last push 2026-11-02.
Comment ces chiffres sont mesurés
Flutter integration for Supabase. These packages makes it simple for developers to build secure and scalable products.
Progression mesurée des étoiles
- in 24h
- +1
- in 7 days
- 0
- in 15 days
- Historique en cours
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalSupabase Flutter
Flutter client library for Supabase.
Guides · Reference Docs · Migration Guides
This repository holds the Supabase client libraries for Dart and Flutter. This README describes v3. Most Supabase Dart examples published elsewhere are v2 code, which no longer compiles. To upgrade a v2 project, follow MIGRATION.md.
Which package to use
| Package | Use it for |
|---|---|
supabase_flutter |
Flutter apps. Start here. |
supabase |
Dart without Flutter: servers and command line tools |
supabase_typegen |
Generating the typed database schema, as a dev dependency |
supabase_test |
Testing code that uses Supabase, as a dev dependency |
supabase_flutter_web_auth |
OAuth and SSO sign in through an in-app browser session |
supabase_flutter and supabase bring in the service clients, which you do
not add yourself: postgrest,
supabase_auth,
supabase_realtime,
supabase_storage,
supabase_functions and
iceberg.
Supabase Service Compatibility
The Supabase Dart and Flutter SDKs only guarantee compatibility with the latest release of each Supabase service, unless a minimum supported version is explicitly listed below.
Older service releases are supported on a best-effort basis, but compatibility is not guaranteed.
If you self-host Supabase, we recommend upgrading your services to their latest releases when upgrading the SDK.
| Service | SDK package | Server releases | Lowest supported version |
|---|---|---|---|
| Auth | supabase_auth |
supabase/auth | Latest release |
| Storage | supabase_storage |
supabase/storage | Latest release |
| Functions | supabase_functions |
supabase/edge-runtime | Latest release |
| PostgREST | postgrest |
PostgREST/postgrest | Latest release |
| Realtime | supabase_realtime |
supabase/realtime | Latest release |
Quick start
Add the package and the schema generator:
flutter pub add supabase_flutter
flutter pub add dev:supabase_typegen
Generate the typed schema of your database with the Supabase CLI, version 3.0.0 or newer:
supabase gen types --lang dart > lib/supabase_schema.g.dart
Initialize Supabase once, then query through the generated types, imported
from supabase_schema.g.dart:
import 'package:flutter/material.dart';
import 'package:supabase_flutter/supabase_flutter.dart';
import 'supabase_schema.g.dart';
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await Supabase.initialize(
url: 'https://your-project.supabase.co',
publishableKey: 'your-publishable-key',
);
runApp(const MaterialApp(home: Placeholder()));
}
Future<List<BooksRow>> booksInPrint() {
return Supabase.instance.client
.table(Books.table)
.select()
.where(Books.inPrint.isTrue())
.order(Books.title);
}
The supabase_flutter README walks
through every part of the API.
Using an AI coding agent
supabase_flutter, supabase, supabase_typegen and supabase_test ship
package skills, instructions that teach
coding agents such as Claude Code, Cursor, Gemini or Copilot the v3 API.
Agents trained on v2 examples otherwise tend to write code that does not
compile. Install the skills of every package you use, with supabase in
place of supabase_flutter in a Dart project without Flutter:
dart run skills@ get -p supabase_flutter
dart run skills@ get -p supabase_typegen
dart run skills@ get -p supabase_test
Run the commands again after upgrading the packages to update the skills.
Testing your app
supabase_test runs your tests against a real
SupabaseClient whose HTTP requests are answered by stubs and whose realtime
socket runs in memory, so no running stack is needed:
dart pub add dev:supabase_test
final httpClient = MockSupabaseHttpClient()
..stubTable(
'books',
rows: [
{'id': 1, 'author_id': 2, 'title': 'Dune', 'in_print': true},
],
);
final supabase = testSupabaseClient(httpClient: httpClient);
addTearDown(supabase.dispose);
final books = await supabase.table(Books.table).selectOnly([
Books.id,
Books.title,
]);
expect(books.single.read(Books.title), 'Dune');
See the supabase_test README for the
full guide: stubbing database, rpc, edge function and auth endpoints,
asserting on recorded requests, running tests as a signed-in user, and wiring
Supabase.initialize in Flutter widget tests.
Run locally
This repository is a monorepo powered by Melos.
All packages are in the packages directory.
To use a local checkout in an app:
Clone this repository.
Install Melos if you have not already:
dart pub global activate melos.Run
melos bootstrap, ormelos bs, at the root of the clone to install the dependencies.Point the dependency in your
pubspec.yamlat the local package:supabase_flutter: path: <your-path-to-the-local-supabase-flutter-repo>/packages/supabase_flutter
Testing this repo
The tests for the packages postgrest, supabase_auth, supabase_realtime and supabase_storage
run against a local Supabase stack. To run these tests locally you need docker and the
Supabase CLI installed.
The single configuration for the stack lives in the supabase directory at the repository root.
Start it with:
supabase start
Run the Dart tests within the package directory in packages/<package> with the following command.
The -j 1 flag runs the tests not concurrently, which works better since the tests run against the
same services.
dart test -j 1
To stop the stack run the following command from the repository root:
supabase stop
Contributing
- Fork the repo on GitHub
- Clone the project to your own machine
- Commit changes to your own branch
- Push your work back up to your fork
- Submit a Pull request so that we can review your changes and merge
License
This repo is licensed under MIT.
Resources
Explorer des projets similaires
Asabeneh/30-Days-Of-Python
Le défi de programmation 30 Days of Python est un guide pas à pas pour apprendre le langage de programmation Python en 30 jours. Ce défi peut prendre plus de 100 jours. Avancez à votre rythme. Ces vidéos peuvent aussi vous aider : https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,618 étoilesgrafana/grafana
Plateforme ouverte et composable d’observabilité et de visualisation de données. Visualise les métriques, les journaux et les traces issus de plusieurs sources, comme Prometheus, Loki, Elasticsearch, InfluxDB, Postgres et bien d’autres.
77,859 étoilesredis/redis
Pour les développeurs qui créent des applications en temps réel pilotées par les données, Redis est le cache, le serveur de structures de données et le moteur de requêtes documentaires et vectorielles préféré, le plus rapide et le plus riche en fonctionnalités.
77,472 étoilesapache/superset
Apache Superset est une plateforme de visualisation et d'exploration de données.
75,495 étoiles