パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v0.11.1

flutter_query

TanStack Query を参考に、サーバーのデータを自動的な状態管理とバックグラウンド更新で取得・キャッシュ・同期します。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
383
いいね数
39
Pub ポイント
160

パッケージをインストール

flutter pub add flutter_query

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Flutter Query は、サーバーデータの取得、キャッシュ、同期を管理するための状態管理パッケージであり、ロード、エラー、成功の状態を自動的に処理します。TanStack Query にインスパイアされ、宣言型API、バックグラウンド更新、組み込みキャッシュ無効化機能を提供することで、Flutterアプリでのデータ取得を簡素化しています。すべての主要プラットフォームをサポートし、Flutterのリアクティブエコシステムとシームレスに統合されます。知的なキャッシング戦略と自動リフェッチにより、ボイラープレートを減らし、パフォーマンスを向上させます。

用途

  • リアルタイムデータ同期
  • オフライン優先のアプリ開発
  • APIデータキャッシュ
  • サーバーデータを使用したダイナミックな UI
  • 自動バックグラウンド更新

主な機能

  • 自動状態管理
  • 組み込みキャッシュおよびスタール・ワイル・リバリデート
  • バックグラウンドデータ同期
  • 宣言型API設計
  • エラーバウンダリ統合
  • ウィンドウのフォーカス時に再取得

適している対象

  • データ集約型のFlutterアプリを開発する開発者
  • ボイラープレートを減らしたいチーム
  • オフライン対応を必要とするアプリ
  • REST または GraphQL API を使用するプロジェクト
  • リアルタイムデータ更新が必要なアプリ

注意事項

  • 新しいユーザー向けの学習曲線
  • 大規模なキャッシュによるメモリ使用量の可能性
  • リアクティブプログラミングの理解が必要です
  • 一部のエッジケースではカスタマイズが限定的です
  • 複雑な認証フローには追加のセットアップが必要になる場合があります

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

flutter_query logo

Flutter Query

CI Status MIT License GitHub Stars

Pub Version Pub Points Pub Likes

A Flutter package inspired by TanStack Query for powerful asynchronous state management. Built with Flutter Hooks.

Coming from TanStack Query? Check out the differences to get started quickly.

Why Flutter Query?

Working with server data is hard. You need caching, deduplication, background refetching, stale data handling, and more. Flutter Query handles all of this out of the box:

  • Automatic caching with intelligent invalidation
  • Request deduplication so multiple widgets share a single network request
  • Background updates to keep data fresh
  • Stale-while-revalidate patterns for instant UI with fresh data
  • Optimistic updates for responsive mutations
  • Retry logic with exponential backoff

Documentation

Visit flutterquery.com for the full documentation, tutorials, and guides.

Platform Support

Android iOS macOS Web Linux Windows
✅ ✅ ✅ ✅ ✅ ✅

Requirements

  • Flutter >=3.32.0
  • Dart >=3.0.0 <4.0.0

Versioning

This project strictly follows Semantic Versioning. Given a version number MAJOR.MINOR.PATCH:

  • MAJOR version increments indicate breaking changes
  • MINOR version increments add functionality in a backward-compatible manner
  • PATCH version increments include backward-compatible bug fixes

Before version 1.0.0, MINOR version increments may include breaking changes.

Support

If you find Flutter Query useful, consider giving it a ⭐ to help others discover it!

カテゴリー

依存関係

依存関係一覧 4 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。