Pakete, Repositories und App-Kategorien suchen

Paketdetailsv2.18.3

supabase_flutter

Flutter-Integration für Supabase. Dieses Paket erleichtert Entwicklern die Erstellung sicherer und skalierbarer Produkte.

AndroidiOSWebmacOSWindowsLinux
30-Tage-Downloads
1,3 Mio.
Likes
990
Pub-Punkte
150

Paket installieren

flutter pub add supabase_flutter

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

Supabase Flutter ist ein umfassendes Paket, das die Backend-Dienste von Supabase in Flutter-Anwendungen integriert. Es ermöglicht Entwicklern, Authentifizierung, Echtzeit-Datenbankoperationen und Cloud-Speicherung mit minimalem Aufwand zu implementieren. Für Sicherheit und Skalierbarkeit entwickelt, unterstützt es mehrere Plattformen wie Android, iOS, Web, macOS, Windows und Linux. Das Paket vereinfacht den Zugriff auf Supabases PostgreSQL-Datenbank, Benutzerverwaltung und Dateispeicherung und befähigt Entwickler, schnell robuste, vollständige Anwendungen zu erstellen.

Anwendungsfälle

  • Benutzerauthentifizierung in mobilen Apps
  • Echtzeit-Daten-Synchronisation
  • Cloud-basierte Dateispeicherung
  • Sichere API-Integration
  • Skalierbare Web- und Mobile-Apps erstellen
  • Offline-first-App-Entwicklung

Hauptmerkmale

  • Eingebaute Authentifizierung mit E-Mail/Kennwort und sozialen Anbietern
  • Echtzeit-Datenbank-Abonnements
  • Sichere Datei-Upload und -Download über Cloud-Speicher
  • Plattformübergreifende Unterstützung
  • Einfach zu verwendendes SDK mit Flutter-freundlichen APIs
  • Automatische Schema-Migration und zeilenbasierte Sicherheit

Geeignet für

  • Flutter-Entwickler, die Full-Stack-Anwendungen erstellen
  • Teams, die sichere, skalierbare Backends benötigen
  • Startups prototypisieren schnell mit minimalem Backend-Aufwand
  • Apps, die Echtzeit-Datenaktualisierungen erfordern
  • Entwickler, die PostgreSQL als ihre Datenbank verwenden
  • Projekte für mehrere Plattformen

Hinweise

  • Erfordert die Einrichtung eines Supabase-Projekts
  • Netzwerkabhängigkeit für Echtzeitfunktionen
  • Lernkurve für erweiterte Sicherheitsregeln
  • Begrenzte Anpassungsmöglichkeiten ohne Backend-Kenntnisse
  • Abhängig von der Verfügbarkeit des Supabase-Services
  • Mögliche Latenz in Offline-Szenarien

Original-README

Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.


Supabase Logo

Supabase Flutter

Flutter client library for Supabase.

Guides · Reference Docs · Migration Guides

Build Package License: MIT

Run locally

This repo is a monorepo powered by Melos containing supabase_flutter and its sub-libraries. All packages are located in the packages directory.

To install on a locally developed app:

  • Clone this repo
  • Install Melos globally if you haven't already: dart pub global activate melos
  • Run melos bootstrap or melos bs at the root of the cloned directory to install dependencies
  • Add the target package to your pubspec.yaml file specifying the path.
    supabase_flutter:
      path: <your-path-to-the-local-supabase-flutter-repo>/packages/supabase_flutter
    

Testing your app

The helpers the test suites of these packages run on are published in package:supabase_test, so your tests can build on the same primitives: mock HTTP clients, JWT builders, auth session fixtures and realtime frames. Add the package as a dev dependency:

dev_dependencies:
  supabase_test: ^0.1.0

Then stub the endpoints the code under test talks to and run it against a real SupabaseClient, with no running stack required:

final httpClient = MockSupabaseHttpClient()
  ..stubTable('todos', rows: [
    {'id': 1, 'task': 'Ship it', 'status': false},
  ]);
final supabase = testSupabaseClient(httpClient: httpClient);
addTearDown(supabase.dispose);

final todos = await supabase.from('todos').select();
expect(todos, hasLength(1));

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.

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

Kategorien

Abhängigkeiten

Abhängigkeiten 11 Einträge

Quell-Repository

Projekte, die dieses Paket verwenden