FLUTTER ECOSYSTEM

brick_graphql

GraphQL connector for Brick, a data persistence library. Includes annotations, adapter, model, and provider.

Latest version
4.0.1
30-day downloads
223
Likes
0
Pub points
160

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

Brick GraphQL is a Flutter/Dart package that integrates GraphQL with Brick, a data persistence library. It provides annotations, adapters, models, and providers to streamline fetching and managing GraphQL data in Flutter apps. The package supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux. By leveraging Brick's type-safe, generated code approach, developers can efficiently work with GraphQL APIs while maintaining clean, maintainable code. It simplifies schema handling and reduces boilerplate through code generation.

Use cases
  • Fetching real-time data from GraphQL APIs
  • Synchronizing local and remote data
  • Building offline-first applications
  • Generating type-safe models from GraphQL schemas
  • Integrating GraphQL into existing Brick-based data layers
Key features
  • Code generation via annotations
  • Type-safe model creation
  • Built-in adapter for GraphQL responses
  • Support for multiple platforms
  • Seamless integration with Brick persistence layer
Suitable for
  • Developers using Brick for data persistence
  • Teams working with GraphQL APIs
  • Apps requiring offline capabilities
  • Projects needing strong typing and code generation
  • Flutter apps targeting multiple platforms
Considerations
  • Requires knowledge of Brick and GraphQL
  • Needs proper schema setup for code generation
  • May increase build time due to code generation
  • Limited documentation compared to mature alternatives
  • Dependent on upstream Brick package stability
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add brick_graphql

Categories

Dependencies

Dependency list 7 items

Source repository

Related projects

No data available yet.