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

패키지 상세v2.1.1

bloc_event_status

상태를 업데이트하지 않고 Bloc 내 이벤트의 상태를 추적합니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
63
좋아요
2
Pub 점수
150

패키지 설치

flutter pub add bloc_event_status

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

bloc_event_status 패키지는 상태 업데이트를 트리거하지 않고 Bloc 내 이벤트의 상태를 추적할 수 있도록 해줍니다. 로딩, 성공 또는 실패와 같은 이벤트 라이프사이클 상태를 모니터링하기 위한 가벼운 메커니즘을 제공하여 더 나은 UI 피드백과 디버깅을 가능하게 합니다. 상태 변경과 별도로 이벤트 추적이 필요한 시나리오에 이상적이며, 복잡한 상태 관리 흐름에서의 관찰 가능성(observability)을 향상시킵니다. 이 패키지는 기존의 Bloc 패턴과 원활하게 통합되며 모든 주요 Flutter 플랫폼을 지원합니다.

사용 사례

  • 상태 변경 없이 이벤트 진행 상황 모니터링
  • 복잡한 Bloc에서 이벤트 흐름 디버깅
  • 이벤트 상태에 따라 로딩 인디케이터 표시
  • 비동기 작업 중 사용자 피드백 향상

주요 기능

  • 비침습적 이벤트 상태 추적
  • 상태 업데이트 필요 없음
  • 다중 이벤트 상태를 지원합니다
  • 경량이며 통합이 쉬움
  • 크로스 플랫폼 호환성

적합한 대상

  • Bloc 패턴을 사용하는 개발자
  • 세부 이벤트 모니터링이 필요한 팀
  • 실시간 이벤트 피드백이 필요한 앱
  • 복잡한 비동기 워크플로를 가진 프로젝트

고려 사항

  • 상태를 수정하지 않음
  • Bloc 이벤트 라이프사이클에 대한 이해가 필요합니다
  • 다른 상태 관리 접근 방식과 함께 사용하는 것이 가장 좋습니다
  • 이벤트 상태 추적 전용

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

BlocEventStatus

BlocEventStatus CI codecov License: MIT

Compose event status tracking into your BLoC state — track loading, success, failure (or any custom status) per event type without modifying your main state logic.

Packages

This repository is a monorepo containing the following packages:

Package Description pub.dev
bloc_event_status Core library — EventStatuses, EventStatusesMixin, and the @blocEventStatus annotation. pub package
bloc_event_status_generator Code generator that produces Emitter extensions from @blocEventStatus-annotated Blocs. pub package

Quick Start

# Core library
dart pub add bloc_event_status

# Optional: code generator for emitter extensions
dart pub add --dev bloc_event_status_generator build_runner

See the bloc_event_status README for full documentation and usage examples.

Contributing

We welcome contributions! Please open an issue, submit a pull request or open a discussion on GitHub.

License

This project is licensed under the MIT License.

카테고리

의존성

의존성 목록 3 개

소스 저장소

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

아직 데이터가 없습니다.