flutter_query 0.5.1 copy "flutter_query: ^0.5.1" to clipboard
flutter_query: ^0.5.1 copied to clipboard

An async state management package that simplifies data fetching, caching, and updates.

flutter_query logo

Flutter Query

CI License GitHub Stars

Powerful asynchronous state management for Flutter, inspired by TanStack Query. Simplifies data fetching, caching, and updates with minimal boilerplate.

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

Why Flutter Query? #

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

  • Automatic Caching: Cache management with configurable stale times
  • Request Deduplication: Multiple widgets share a single network request
  • Background Refetching: Keep data fresh with automatic background updates
  • Stale-While-Revalidate: Show cached data instantly while fetching updates
  • Optimistic Updates: Responsive UI with rollback on failure
  • Infinite Queries: Built-in pagination for infinite scrolling view
  • Automatic Retries: Configurable retry logic with exponential backoff
  • Lifecycle Aware: Automatic refetch on app resume

Documentation #

Visit flutterquery.com for comprehensive documentation:

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.

33
likes
160
points
530
downloads

Publisher

verified publisherflutterquery.com

Weekly Downloads

An async state management package that simplifies data fetching, caching, and updates.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

clock, collection, flutter, flutter_hooks, meta

More

Packages that depend on flutter_query