Search packages, repositories and app categories

Package detailsv0.9.1+1

ferry_flutter

Flutter widgets for the Ferry GraphQL client

AndroidiOSWebmacOSWindowsLinux
30-day downloads
1.2K
Likes
21
Pub points
130

Install package

flutter pub add ferry_flutter

Package Overview

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

Ferry Flutter provides a set of Flutter widgets designed to work seamlessly with the Ferry GraphQL client, enabling efficient and reactive data fetching in Flutter applications. It simplifies the integration of GraphQL queries, mutations, and subscriptions into UI components with built-in state management and loading/error handling. The package enhances developer productivity by reducing boilerplate code and ensuring real-time updates through reactive bindings. It is ideal for apps requiring dynamic data synchronization with GraphQL APIs.

Use cases

  • Real-time data updates in Flutter apps
  • Simplifying GraphQL query integration
  • Building reactive UIs with GraphQL
  • Managing GraphQL state in Flutter
  • Fetching and mutating data from GraphQL servers

Key features

  • Reactive Flutter widgets for GraphQL
  • Built-in loading and error states
  • Automatic re-fetching on dependency changes
  • Support for queries, mutations, and subscriptions
  • Seamless integration with Ferry client

Suitable for

  • Flutter developers using GraphQL
  • Apps needing real-time data sync
  • Projects with complex data dependencies
  • Teams prioritizing developer experience
  • Applications leveraging Ferry GraphQL client

Considerations

  • Requires Ferry GraphQL client setup
  • Limited to GraphQL-based backends
  • May increase bundle size slightly
  • Dependent on Ferry client stability
  • Best suited for modern Flutter projects with GraphQL needs

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

A simple, powerful GraphQL Client for Flutter and Dart

MIT License PRs Welcome Watch on GitHub Star on GitHub Watch on GitHub Discord

Documentation 📖

Features

  1. ✅ Fully Typed: work faster and safer with compile time checks and IDE autocomplete, including fully typed Cache reads and writes.
  2. 🔄 Built-In Code Generators: automatically generated immutable data classes for all your GraphQL Operations and Fragments, based on your schema.
  3. 🌐 Customizable Network Interface: highly customizable network interface using gql_link, allowing you to compose and extend Links.
  4. ✨ Normalized Optimistic Cache: keep data in sync with cache normalization and update your UI instantly with optimistic data.
  5. 💾 Multiple Data Stores: extensible Store interface with built-in MemoryStore and HiveStore (which uses hive for offline persistence).
  6. 📄 Refetch & Pagination: easily update responses with new data or combine multiple responses, allowing for seamless pagination.
  7. 📱 Flutter Widgets: Widgets for Queries, Mutations, and Subscriptions, available out of the box.
  8. 🧈 Smooth: Run queries in a separate Isolate to free up resources on the UI thread

Packages

This repo is a monorepo for ferry and related packages.

Pub Package Description
version package:ferry Stream-based GraphQL Client
version package:ferry_cache Normalized, strongly typed, optimistic cache
version package:ferry_exec Strongly typed GraphQL execution interface
version package:ferry_flutter Flutter Widgets for GraphQL Operations
version package:ferry_generator Dart Type Generator for GraphQL Operations
version package:ferry_store Data Persistence for ferry's cache
version package:ferry_hive_store Hive implementation of ferry_store
version package:normalize Normalization / denormalization of GraphQL data

Categories

Dependencies

Dependency list 3 items

Source repository

Projects using this package