Skip to main content

syncache_flutter 0.3.0 copy "syncache_flutter: ^0.3.0" to clipboard
syncache_flutter: ^0.3.0 copied to clipboard

Flutter integration for Syncache - lifecycle management, widgets, and connectivity detection.

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.

0.3.0 #

Added #

  • SyncacheScope now accepts resolvePendingMutation (a record → Mutation resolver) and onRecovered. When provided, the scope replays persisted outbox records on mount via Syncache.recoverPendingMutations, so offline writes queued before an app restart are re-enqueued — and flushed if the network is online — before normal usage. Top-level recovery failures are reported through FlutterError.reportError.

Changed #

  • Dependency alignment with syncache 0.3.0 (constraint raised to ^0.3.0).

0.2.0 #

Changed #

  • Dependency alignment with syncache 0.2.0 (constraint raised to ^0.2.0). The core package's breaking changes apply to this package's widgets and lifecycle integration — in particular, invalidation no longer closes watch streams and mutate() returns a MutationHandle (see the syncache changelog).

Added #

  • FlutterNetwork now implements core's ReactiveNetwork. Passing it to a Syncache makes the cache flush pending mutations automatically when connectivity is restored.
  • SyncacheLifecycleObserver additionally calls processPendingMutations() on reconnect as a belt-and-braces for caches whose Network does not report connectivity changes. Watcher refetch on reconnect remains gated by LifecycleConfig.refetchOnReconnect.
  • CacheBuilder / CacheConsumer documentation updated: the snapshot only reaches ConnectionState.done on dispose — invalidation refetches in place.

0.1.2 #

Changed #

  • Version alignment with syncache 0.1.2 (dependency constraint raised to ^0.1.2). No functional changes in this package.

0.1.0 - 2026-03-14 #

Added #

  • SyncacheScope - InheritedWidget for dependency injection of cache instances
  • MultiSyncacheScope - Helper for providing multiple cache types without deep nesting
  • CacheBuilder - StreamBuilder-style widget for reactive cache data display
  • CacheConsumer - Consumer pattern widget with separate listener callback
  • SyncacheLifecycleObserver - App lifecycle and reconnect handling
    • Automatic refetch on app resume (configurable minimum pause duration)
    • Automatic refetch on connectivity restoration
  • FlutterNetwork - Connectivity detection using connectivity_plus
    • Debounced connectivity change events
    • Concurrent initialization handled via Completer pattern
  • SyncacheValueListenable - ValueListenable wrapper for use with ValueListenableBuilder
  • LifecycleConfig - Configuration class for lifecycle behavior customization
1
likes
0
points
324
downloads

Publisher

verified publisherthedevayo.com

Weekly Downloads

Flutter integration for Syncache - lifecycle management, widgets, and connectivity detection.

Repository (GitHub)
View/report issues

Topics

#cache #offline-first #flutter #state-management

License

unknown (license)

Dependencies

connectivity_plus, flutter, syncache

More

Packages that depend on syncache_flutter