Search packages, repositories and app categories

Package detailsv2.1.1

bloc_event_status

Track the status of events in a bloc without updating the state.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
63
Likes
2
Pub points
150

Install package

flutter pub add bloc_event_status

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The bloc_event_status package allows developers to track the status of events in a Bloc without triggering state updates. It provides a lightweight mechanism to monitor event lifecycle states such as loading, success, or failure, enabling better UI feedback and debugging. Ideal for scenarios where event tracking is needed independently of state changes, it enhances observability in complex state management flows. The package integrates seamlessly with existing Bloc patterns and supports all major Flutter platforms.

Use cases

  • Monitoring event progress without state changes
  • Debugging event flow in complex Blocs
  • Displaying loading indicators based on event status
  • Enhancing user feedback during asynchronous operations

Key features

  • Non-intrusive event status tracking
  • No state update required
  • Supports multiple event statuses
  • Lightweight and easy to integrate
  • Cross-platform compatibility

Suitable for

  • Developers using Bloc pattern
  • Teams needing detailed event monitoring
  • Apps requiring real-time event feedback
  • Projects with complex asynchronous workflows

Considerations

  • Does not modify state
  • Requires understanding of Bloc event lifecycle
  • Best used alongside other state management approaches
  • Limited to event status tracking only

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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.

Categories

Dependencies

Dependency list 3 items

Source repository

Projects using this package

No data available yet.