搜尋套件、儲存庫與 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 項

原始碼儲存庫

使用此套件的專案