brick_core
2.1.0, released a year ago by an unverified publisher
Interfaces and shared helpers for models, adapters, and repositories in Brick.
What it does
Provides core interfaces, query helpers, and shared utilities for implementing persistent data repositories, adapters, and providers in the Brick ecosystem.
AI-written summary of version 2.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- Building or extending custom Brick providers, adapters, or repositories.
- Working with persistent data using Brick's repository pattern architecture.
Skip it when
- You are not using the Brick data persistence framework.
- You just need a simple standalone key-value store or database client without an abstraction layer.
Strengths
- Enforces a clean separation of concerns between models, adapters, providers, and repositories.
- Provides standardized query objects and conditions for data retrieval.
Weaknesses
- Not useful on its own without specific Brick provider implementations and code generation packages.
- Requires adopting Brick's specific architectural patterns.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Add as a dependency when building Brick-related packages or applications.
import 'package:brick_core/brick_core.dart';
void main() {
final query = Query(limit: 10);
}Alternatives
Packages that do the same job and could replace brick_core.
- flutter_data
A Flutter/Dart library for reactive, offline‑first data models with built‑in Riverpod integration.
53Compare - localstore
JSON file-based storage package providing a persistent repository for a simple NoSQL database.
50Compare - database
Vendor-agnostic API for accessing SQL-like databases
43Compare
Works with
Packages commonly used together with brick_core: ones it builds on, ones built on it, and its own family.
- brick_offline_firstBuilt on brick_coreUnified offline‑first repository that syncs SQLite with remote providers.
- brick_supabaseBuilt on brick_coreSupabase connector for the Brick data persistence library.
- brick_offline_first_with_supabaseBuilt on brick_coreRoutes data fetching through local providers before Supabase with offline caching.