An extension to the bloc state management library which automatically persists and restores bloc states.
hydrated_cubit ^0.1.2
to prevent data loss during migration.fromJson
invocationshydrated_cubit ^0.1.3
bloc ^5.0.1
Storage
interfaceStorage
interface to enable custom Storage
bloc ^5.0.0
hydrated_cubit ^0.1.0
super.initialState
is no longer requiredHydratedStorage
to use package:hive
(thanks to @orsenkucher).HydratedStorage
(thanks to @orsenkucher).bloc: ^4.0.0
and flutter_bloc: ^4.0.0
onTransition
moved from HydratedBlocDelegate
to HydratedBloc
initialState
when initialized (thanks to @orsenkucher).synchronized
to prevent file corruption (thanks to @orsenkucher)HydratedBlocStorage.getInstance
to avoid using a singleton (thanks to @orsenkucher)path_provider: ^1.6.5
onError
and continue emitting states when exceptions occurinitialState
when initialized.synchronous
to prevent file corruptionHydratedBlocStorage.getInstance
to avoid using a singletonpath_provider: ^1.6.5
onError
and continue emitting states when exceptions occurbloc ^2.0.0
bloc: ^3.0.0