flutter_offline_sync_queue 0.1.0 copy "flutter_offline_sync_queue: ^0.1.0" to clipboard
flutter_offline_sync_queue: ^0.1.0 copied to clipboard

Offline-first background sync for Flutter. Queue any local model while offline and automatically sync it to any REST API when connectivity returns. Supports WorkManager background tasks, notifications [...]

Changelog #

0.1.0 #

Initial release.

  • Generic SyncRecord serialised as a plain Map in Hive — no TypeAdapter or build_runner required by consumers
  • SyncEntityConfig<T> with toJson/fromJson, buildPathSuffix, extractServerId, onSuccess/onFailure hooks
  • SyncOrchestrator with ordered pre-flight guards: foreground, battery, pending-data, connectivity, auth
  • SyncEngine with per-record retry, dead-letter (SyncStatus.dead), and interrupt support
  • BackgroundSyncDispatcher + BackgroundSyncManager for WorkManager integration
  • AppLifecycleObserver persists foreground flag to SharedPreferences for background isolate access
  • SyncNotificationService for per-cycle summary notifications
  • SyncErrorHandler converts Dio / network exceptions to user-friendly strings
  • ConnectivityChecker with optional VPN callback
  • Full example app
  • Unit tests (no Flutter binding or Hive required)
3
likes
0
points
163
downloads

Publisher

unverified uploader

Weekly Downloads

Offline-first background sync for Flutter. Queue any local model while offline and automatically sync it to any REST API when connectivity returns. Supports WorkManager background tasks, notifications, lifecycle awareness, battery checks, auto-retry, and a generic model abstraction with no code-generation required.

Repository (GitHub)
View/report issues

Topics

#offline #sync #background #workmanager #hive

License

unknown (license)

Dependencies

battery_plus, connectivity_plus, dio, flutter, flutter_local_notifications, hive_flutter, path_provider, shared_preferences, workmanager

More

Packages that depend on flutter_offline_sync_queue