Skip to content

Components that make it easy to integrate blocs and cubits into Jaspr. Built to work with package:bloc.

License

Notifications You must be signed in to change notification settings

kadasolutions/jaspr_bloc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alt text

jaspr_bloc

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.

Acknowledgments

This package is made possible by the foundational work of:

Installation

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.git

API Overview

The library implements the following standard components and extensions:

Providers

  • BlocProvider / BlocProvider.value
  • RepositoryProvider / RepositoryProvider.value
  • MultiBlocProvider
  • MultiRepositoryProvider

Consumers

  • BlocBuilder
  • BlocListener
  • BlocConsumer
  • BlocSelector

Extensions

  • context.read<B>()
  • context.repository<T>()

License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

About

Components that make it easy to integrate blocs and cubits into Jaspr. Built to work with package:bloc.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages