flutter-bloc-stream-tracking

Community

Drive real-time UI with Bloc streams.

AuthorabdallhMoukdad
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It solves the challenge of wiring server-pushed real-time events into a Flutter Bloc without leaking subscriptions or creating confusing state transitions.

Core Features & Use Cases

  • Stream-to-state wiring with emit.forEach: Subscribes inside an event handler so the subscription lifetime is tied to the handler and Bloc close lifecycle.
  • Explicit connection lifecycle states: Separates Connecting, Connected, Reconnecting, Disconnected, and a terminal Closed state for UI correctness.
  • Repository-owned transport and reconnection: Keeps retry/backoff/transport details in the Repository while the Bloc focuses on state flow.
  • Disconnect done safely: Stops tracking by closing the upstream stream via the Repository rather than trying to terminate another handler’s work.

Quick Start

Ask the AI to generate the Bloc event handlers, freezed states, and view wiring for a real-time order tracking screen using emit.forEach with restartable connect and a Closed terminal state.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: flutter-bloc-stream-tracking
Download link: https://github.com/abdallhMoukdad/flutter-bloc-skills/archive/main.zip#flutter-bloc-stream-tracking

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.