패키지, 저장소 및 앱 카테고리 검색

패키지 상세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 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.