Skip to content
pubscout

brick_core

2.1.0, released a year ago by an unverified publisher

Interfaces and shared helpers for models, adapters, and repositories in Brick.

WASM-readyUnverified publisher
$ flutter pub add brick_core
Source repository

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.

  • localstore

    JSON file-based storage package providing a persistent repository for a simple NoSQL database.

  • database

    Vendor-agnostic API for accessing SQL-like databases

Works with

Packages commonly used together with brick_core: ones it builds on, ones built on it, and its own family.