FLUTTER ECOSYSTEM

flutter_bloc

Flutter widgets that make it easy to implement the BLoC (Business Logic Component) design pattern. Built to be used with the bloc state management package.

Latest version
9.1.1
30-day downloads
1.5M
Likes
8K
Pub points
160

Package Overview

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

Overview

Flutter_Bloc is a Flutter package that simplifies implementing the BLoC (Business Logic Component) design pattern, promoting clean separation between UI and business logic. It integrates seamlessly with the bloc state management library, enabling reactive state updates through streams and events. The package provides widgets like BlocBuilder, BlocProvider, and Cubit to manage state efficiently across the app. Designed for scalability and testability, it supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux.

Use cases
  • State management in large-scale apps
  • Reactive UI updates based on state changes
  • Separating business logic from UI
  • Testing complex state transitions
  • Building reusable stateful components
Key features
  • Stream-based state handling
  • Built-in widgets for state synchronization
  • Easy integration with the bloc library
  • Support for both Bloc and Cubit patterns
  • Cross-platform compatibility
Suitable for
  • Developers using the BLoC pattern
  • Apps requiring predictable state flow
  • Teams prioritizing testability and maintainability
  • Projects with complex state logic
Considerations
  • Steeper learning curve for beginners
  • Requires understanding of streams and events
  • May introduce boilerplate for simple use cases
  • Not ideal for very small or static apps
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add flutter_bloc

Categories

Source repository

Related projects

Rankings