FLUTTER ECOSYSTEM

stream_bloc

Modern implementation of the Original BLoC that uses asynchronous generators to describe relationships between events and states.

Latest version
0.6.0
30-day downloads
206
Likes
36
Pub points
160

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

StreamBloc is a modern state management solution built on asynchronous generators, offering a clean and reactive way to handle events and states in Flutter applications. It extends the original BLoC pattern by leveraging Dart's async* syntax for streamlined event-state transitions. This approach simplifies logic flow and improves readability, especially for complex state changes. StreamBloc integrates seamlessly with Flutter’s reactive ecosystem and supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux.

Use cases
  • Real-time data processing
  • Form handling with validation
  • Complex state transitions
  • User authentication flows
  • Dynamic UI updates
Key features
  • Async generators for state transitions
  • Reactive event handling
  • Type-safe event and state definitions
  • Built-in error handling
  • Cross-platform compatibility
Suitable for
  • Developers familiar with BLoC pattern
  • Apps requiring reactive state management
  • Projects using asynchronous workflows
  • Teams prioritizing clean code structure
  • Large-scale Flutter applications
Considerations
  • Requires understanding of async* syntax
  • May be overkill for simple apps
  • Limited community adoption compared to bloc
  • Learning curve for beginners
  • Not compatible with older Dart versions
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add stream_bloc

Categories

Source repository

Related projects

No data available yet.