# Bloc

> Predictable state management for Dart and Flutter with the BLoC pattern

Source: https://talira.ai/catalog/bloc-g23p8c1m
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [frontend / state management](https://talira.ai/categories/frontend/state-management), [languages / dart](https://talira.ai/categories/languages/dart)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Felix Angelov](https://talira.ai/orgs/felangel.md)

Bloc is a state management library for Dart and [Flutter](https://talira.ai/catalog/flutter-nhwgvsth.md) that implements the BLoC (Business Logic Component) pattern, keeping business logic apart from presentation so it can be tested and reused. A Cubit exposes functions that emit new states; a Bloc takes events and maps them to states; both can be observed for every change and transition. The flutter_bloc package adds widgets such as BlocBuilder, BlocSelector, BlocListener, BlocConsumer and BlocProvider that rebuild or react when state changes, and companion packages add testing (bloc_test), persisted state (hydrated_bloc), undo and redo (replay_bloc) and event concurrency controls. It is made by Felix Angelov.

## Links

- Website: https://bloclibrary.dev/
- GitHub: https://github.com/felangel/bloc

## Problems it solves

- separate business logic from UI in my Flutter app
- manage app state in Flutter in a way I can unit test
- rebuild only the Flutter widgets that depend on a piece of state

## Features

- Cubit: functions that emit new states
- Bloc: events mapped to states, with observable transitions
- flutter_bloc widgets: BlocBuilder, BlocSelector, BlocListener, BlocConsumer, BlocProvider
- RepositoryProvider for dependency injection
- Companion packages for testing, persisted state, undo/redo and event concurrency

## Trust

Overall: 0.72 out of 1.
Signals: maintenance 1.00, adoption 0.82, momentum 0.64, community 0.97, backing 0.30, extensibility 0.00.

- last commit 4 days ago
- 60 commits in the last 90 days
- latest release flutter_bloc-v9.1.2 4 days ago
- 12.5k GitHub stars
- 269 contributors
- accepts sponsorship (Github, Patreon, Open Collective)
- backed by Felix Angelov

## Related

- Works with [Flutter](https://talira.ai/catalog/flutter-nhwgvsth.md)

## Alternatives

- [provider](https://talira.ai/catalog/provider-tz93kmmm.md): InheritedWidgets, but simple
- [GetX](https://talira.ai/catalog/getx-b3e56zp1.md): State management, dependency injection and routing for Flutter in one package
- [MobX.dart](https://talira.ai/catalog/mobx-dart-jg59zj7j.md): Reactive state management for Dart and Flutter, a port of MobX
- [June](https://talira.ai/catalog/june-4md69z82.md): Flutter state management that feels like Flutter
- [Riverpod](https://talira.ai/catalog/riverpod-0789xgsd.md): Reactive caching and data-binding framework for Dart and Flutter

## Sources

[^1]: https://github.com/felangel/bloc/blob/master/packages/bloc/LICENSE (checked 28 Nov 2026)
