bloc_manager 1.1.1
bloc_manager: ^1.1.1 copied to clipboard
A Flutter BLoC management package that eliminates boilerplate state-management code. Provides a sealed BaseState hierarchy, BlocManager widget with auto loading/error/success handling, and CacheableBl [...]
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.1.1 – 2026-02-19 #
Changed #
- Updated README with
BlocManagerThemeusage guide,BlocManagerThemeDatafields table, resolution priority chain, and corrected section numbering. - Updated installation snippet to
^1.1.0.
1.1.0 – 2026-02-19 #
Added #
BlocManagerTheme— anInheritedWidgetthat sets app-wide defaults for loading widget, loading colour, error handler, and success handler in one place.BlocManagerThemeData— holds the configuration values.BlocManager.showResultErrorNotificationsandshowResultSuccessNotificationsare nowbool?;nullinherits from the nearestBlocManagerTheme.BlocManagererror/success resolution priority: instance callback → theme callback → built-in snackbar.
1.0.2 – 2026-02-19 #
Changed #
BlocManagernow detects Firebase/Firestore error patterns (missing index, permission denied, document not found) and logs enhanced debug messages automatically.
1.0.1 – 2026-02-19 #
Changed #
- Removed author name from package description (author credits are in README).
- Widened
loading_overlayconstraint to>=0.3.0 <1.0.0to avoid version conflicts with host apps.
1.0.0 – 2026-02-19 #
Added #
BaseState<T>sealed class hierarchy (InitialState,LoadingState,SuccessState,ErrorState,LoadedState,EmptyState, and async variants).BaseCubit<S>andBaseBloc<E,S>withemitLoading(),emitSuccess(),emitError(), andexecuteAsync().BlocManager<B,S>widget wrappingBlocConsumerwith automatic loading overlay, error snackbar, and success snackbar.CacheableBlocMixin– in-memory state caching with TTL support.PaginationBlocMixin– page-based data loading with cursor tracking.RefreshableBlocMixin– pull-to-refresh with cooldown and optional auto-refresh timer.BlocManagerLogger– colour-coded ANSI console logging.- Example counter app under
example/.