Resource Bloc

A specialized Bloc for managing data backed by both local and remote sources.

This package helps simplify offline-first data loading patterns. Whereas a normal Bloc is typically used to manage a single feature, a Resource Bloc is typically used to manage a single resource that exists on a remote server but can be saved in a local database on the client.

Inspired by Kotlin Store and the NetworkBoundResource pattern in the Android App Architecture guide, but with the semantics of the BLoC design pattern.



This library is still under active development. Use at your own risk!


Bloc that manages a resource which can be backed by both a local database and a network