搜索插件、代码仓与 APP 分类

插件详情v0.9.1+1

ferry_flutter

Ferry GraphQL 客户端的 Flutter 小部件

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
1150
喜欢数
21
Pub 分数
130

安装插件

flutter pub add ferry_flutter

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Ferry Flutter 提供了一套专为与 Ferry GraphQL 客户端无缝协作而设计的 Flutter 小部件,可在 Flutter 应用中实现高效且响应式的数据获取。它通过内置的状态管理以及加载/错误处理,简化了将 GraphQL 查询、变更和订阅集成到 UI 组件的过程。该包通过减少样板代码并利用响应式绑定确保实时更新,从而提升开发效率。非常适合需要与 GraphQL API 实现实时动态数据同步的应用。

适合场景

  • Flutter 应用中的实时数据更新
  • 简化 GraphQL 查询集成
  • 使用 GraphQL 构建响应式 UI
  • 在Flutter中管理GraphQL状态
  • 从 GraphQL 服务器获取和修改数据

主要特点

  • 用于 GraphQL 的响应式 Flutter 小部件
  • 内置的加载和错误状态
  • 依赖项更改时自动重新获取
  • 支持查询、变更和订阅
  • 与Ferry客户端无缝集成

适合对象

  • 使用 GraphQL 的 Flutter 开发人员
  • 需要实时数据同步的应用
  • 具有复杂数据依赖关系的项目
  • 注重开发者体验的团队
  • 利用 Ferry GraphQL 客户端的应用程序

使用建议

  • 需要设置渡轮 GraphQL 客户端
  • 仅限基于 GraphQL 的后端
  • 可能会略微增加打包大小
  • 取决于渡轮客户端的稳定性
  • 最适合具有 GraphQL 需求的现代 Flutter 项目

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

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

所属分类

依赖

依赖清单 3 项

源码仓库

使用此插件的项目