An integration library for Jaspr and Bloc.
This package provides a bridge to use the BLoC state management pattern within Jaspr web applications. The API is designed to mirror flutter_bloc, adapted for Jaspr’s component-based system.
This package is made possible by the foundational work of:
- Jaspr: Created by Kilian Schulte.
- Bloc: Created by Felix Angelov.
Add jaspr_bloc to your pubspec.yaml:
dependencies:
jaspr: ^0.22.1
bloc: ^9.2.0
jaspr_bloc:
git:
url: https://github.com/kadasolutions/jaspr_bloc.gitThe library implements the following standard components and extensions:
BlocProvider/BlocProvider.valueRepositoryProvider/RepositoryProvider.valueMultiBlocProviderMultiRepositoryProvider
BlocBuilderBlocListenerBlocConsumerBlocSelector
context.read<B>()context.repository<T>()
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
