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

套件詳情v3.4.1

cached_query_flutter

用於 Flutter 中 Cached Query 的建構器和附加元件組合。

AndroidiOSmacOSWindowsLinux
近 30 天下載
1.3萬
喜歡數
39
Pub 分數
160

安裝套件

flutter pub add cached_query_flutter

套件介紹

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

Cached Query Flutter 是一個套件,提供建構器與實用工具,以增強使用 Cached Query 庫的 Flutter 應用程式中的狀態管理。它透過提供與 Cached Query 架構無縫整合的反應式元件和輔助工具,簡化資料取得、快取和 UI 更新。專為高效、即時的資料處理而設計,可自動管理查詢狀態、載入指示器與錯誤處理,減少重複程式碼並提升效能。非常適合需要動態資料同步且程式碼量最少的應用。

適用情境

  • 即時資料顯示
  • 離線優先的應用程式
  • API 數據快取
  • 動態 UI 更新
  • 減少網路呼叫
  • 簡化狀態管理

主要特色

  • 響應式查詢建構器
  • 自動快取
  • 錯誤與載入狀態處理
  • 最小化樣板程式碼
  • 與 Cached Query 核心的整合
  • 跨平台支援

適合對象

  • 使用快取查詢的開發者
  • 需要高效資料取得的應用程式
  • 重視效能的團隊
  • 頻繁呼叫 API 的 Flutter 應用
  • 需要離線功能的專案

使用建議

  • 需要 Cached Query 核心
  • 有限的獨立功能
  • 依賴於正確設定
  • 最適合狀態密集型應用
  • 可能為簡單使用案例增加複雜性

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Cached Query

Visit the documentation for more information.

A small collection of dart and flutter libraries inspired by tools such as SWR, RTKQuery, React Query, Urql and apollo from the React world.

Cache any the response of any asynchronous function (usually external api requests) for a fast and snappy user experience.

The repo is made of three packages:

  • The base package, Cached Query, has no flutter dependencies and can therefore be used in any dart project.
  • Cached Query Flutter adds some useful flutter tools such as connectivity re-fetching and focus re-fetching.
  • Cached Storage is a persistent storage addon for flutter apps.

所屬分類

依賴

依賴清單 2 項

原始碼儲存庫

使用此套件的專案