Search packages, repositories and app categories

Package detailsv5.2.4

graphql

A stand-alone GraphQL client for Dart, bringing all the features from a modern GraphQL client to one easy to use package.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
403K
Likes
500
Pub points
135

Install package

flutter pub add graphql

Package Overview

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

A standalone GraphQL client for Dart, designed to deliver modern GraphQL functionality in a simple and intuitive package. It enables seamless integration with GraphQL APIs across multiple platforms, offering features like query execution, mutation handling, subscription support, and caching. Built for developers who want a lightweight yet powerful solution without the overhead of larger frameworks. The client is well-suited for apps requiring real-time data, efficient state management, and clean API interactions.

Use cases

  • Fetching real-time data from GraphQL APIs
  • Implementing offline-first applications with caching
  • Building cross-platform apps with consistent data layer
  • Managing complex queries and mutations
  • Integrating with backend services using GraphQL
  • Supporting dynamic UIs driven by API responses

Key features

  • Full support for queries, mutations, and subscriptions
  • Built-in caching and response normalization
  • Cross-platform compatibility (Android, iOS, Web, macOS, Windows, Linux)
  • Easy-to-use API with minimal boilerplate
  • Type-safe operations via code generation
  • Error handling and retry mechanisms

Suitable for

  • Dart developers building modern apps with GraphQL
  • Teams seeking a lightweight alternative to full-featured clients
  • Projects requiring real-time data synchronization
  • Apps targeting multiple platforms with shared logic
  • Developers using Flutter with GraphQL backends

Considerations

  • Requires manual setup for code generation
  • May need additional configuration for advanced caching strategies
  • Best used with generated types for type safety
  • Limited built-in dev tools compared to web-based clients
  • Dependent on external schema definitions for strong typing

Categories

Dependencies

Dependency list 17 items

Projects using this package