alt_bloc 1.0.0
alt_bloc: ^1.0.0 copied to clipboard
A library that provides components for more easier and boilerplate implementation of the BLoC architecture pattern.
1.0.0 - 2020-04-28 - Major release #
- New
BlocConsumerwidget has been implemented. BlocBuilder,BlocProviderandRouteListenerwidgets have been refactored.Blocpublic interface has been redesigned.- New
Blocmethods and properties have been added:Bloc.isDisposed,Bloc.containsState(),Bloc.addNavigationSource(). BREAKING CHANGES - The way access to state and navigation events of
Blochas been changed.Bloc.listenNavigation()method has been changed toBloc.navigationStreamproperty.Bloc.listenState()has been changed toBloc.getStateStream(). - Method
Bloc.addStreamSource()has been renamed toBloc.addStatesSource(). - Method
Bloc.addFutureSource()has been renamed toBloc.addStateSource().
0.1.2+3 - 2020-03-13 #
- Issue with throwing
ArgumentErrorafter calladdStatemethod for disposed bloc has been fixed.
0.1.2+2 - 2020-03-04 #
- Hotfix of navigation events processing flow.
0.1.2+1 - 2020-03-04 #
- Issue with navigation events loss has been fixed.
0.1.2 - 2020-02-26 #
addNavigation<R>()method has been improved and returns a Future that completes to the result value passed toNavigator.pop()when the pushed route is popped off the navigator.- Bloc methods
registerState,initialState,addNavigation,addState,addStreamSourceandaddFutureSourcewere marked as protected.
0.1.1+2 - 2020-02-15 #
addStreamSource<S>()andaddFutureSource<S>()methods have been improved. New arguments that allow listen for source future/stream state have been added.
0.1.1+1 - 2020-02-02 #
- All pub.dev health suggestions have been resolved.
0.1.1 - 2020-01-29 #
- Implements Bloc feature that provide possibility pass Stream or Future as source of states. To
use this feature you need to call
StreamSubscription<S> addStreamSource<S>(Stream<S> source)orStreamSubscription<S> addFutureSource<S>(Future<S> source).
0.1.0 - 2020-01-28 #
- Bloc design pattern solution. Implements Bloc with multi states feature. Implements widgets that improve work with Bloc such as BlocProvider, Provider, BlocBuilder, RouteListener.