搜尋套件、儲存庫與 APP 分類

套件詳情v0.6.1

ferry_store

Ferry GraphQL 客戶端的預設儲存

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
7.2萬
喜歡數
2
Pub 分數
130

安裝套件

flutter pub add ferry_store

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Ferry Store 是 Ferry GraphQL 客戶端的預設狀態管理解決方案,專為有效管理並快取 Flutter 應用中的 GraphQL 查詢結果而設計。它與 Ferry 無縫整合,提供反應式、類型安全的儲存,可同步資料至伺服器,支援樂觀更新,並處理訂閱。專為效能與開發者體驗打造,透過減少樣板程式碼並確保跨平台的一致性,簡化了 GraphQL 驅動應用中的狀態處理。

適用情境

  • 管理快取的 GraphQL 查詢結果
  • 透過訂閱處理即時更新
  • 樂觀的 UI 更新
  • 跨平台 GraphQL 狀態管理
  • 同步本地狀態與伺服器資料

主要特色

  • 內建快取層
  • 類型安全的狀態管理
  • 支援樂觀更新
  • 即時訂閱處理
  • 與Ferry客戶端無縫整合

適合對象

  • 使用 Ferry GraphQL 客戶端的 Flutter 應用
  • 需要高效數據同步的應用程式
  • 尋求 GraphQL 狀態最小樣板的開發人員
  • 針對多個平台的專案
  • 優先考慮反應式 UI 模式的團隊

使用建議

  • 需要 Ferry GraphQL 客戶端
  • 僅限於Ferry生態系統外有限獨立使用
  • 可能需要學習與Ferry相關的模式
  • 不適用於非GraphQL狀態管理
  • 最佳搭配 Ferry 生成的程式碼

原始 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

所屬分類

依賴

依賴清單 2 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。