brick_supabase
2.1.1, released a year ago by an unverified publisher
Supabase connector for the Brick data persistence library.
WASM-readyUnverified publisher
What it does
Connects the Brick data persistence framework to Supabase, providing annotations, adapters, models, and providers to handle serialization, querying, and realtime data.
AI-written summary of version 2.1.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are already using Brick as your data persistence layer and want to integrate Supabase.
- You need structured models with annotations for Supabase tables, fields, and foreign keys.
Skip it when
- You are building a standard app using the official Supabase Flutter client directly without Brick.
- Your project does not use the Brick persistence ecosystem.
Strengths
- Seamless integration with Brick's querying and offline-first ecosystem.
- Built-in annotations for table mapping, field renaming, and foreign key relations.
- Includes testing utilities and mock servers for Supabase requests.
Weaknesses
- Does not support all Supabase filtering methods.
- Does not support nested List types or many-to-many associations directly.
- Tied strictly to the Brick persistence architecture.
Setup
- Kind
- Pure Dart
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 5
Requires adding brick_supabase and configuring code generation along with Supabase initialization.
@SupabaseSerializable(tableName: 'users')
class User extends OfflineFirstWithSupabaseModel {
@Supabase(unique: true, name: 'uuid')
final String supabaseUuid;
final String name;
User({required this.supabaseUuid, required this.name});
}Works with
Packages commonly used together with brick_supabase: ones it builds on, ones built on it, and its own family.
- loggingbrick_supabase depends on itProvides configurable logging with levels and stream listeners for Dart apps.
- supabasebrick_supabase depends on itDart client for Supabase, usable in non-Flutter Dart environments.
- brick_corebrick_supabase depends on itInterfaces and shared helpers for models, adapters, and repositories in Brick.
- brick_offline_first_with_supabaseBuilt on brick_supabaseRoutes data fetching through local providers before Supabase with offline caching.