query
一个异步状态管理包,可简化数据获取、缓存和更新。
- 星标
- 32
- 复刻
- 2
- 最近推送(UTC)
- 2026年7月14日
- 项目状态
- 未归档
原始 README
以下为英文项目原文快照,最新内容请访问 GitHub。
Flutter Query
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!
分类
如何选择适合项目的代码仓?
先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
- 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
- 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
- 使用前在 GitHub 核对 README、许可证与 Issues。
来源与维护
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗