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

Offline-first background sync for Flutter apps. Queue any local Dart model while offline and sync it automatically to any REST API when connectivity returns. Built on WorkManager with battery awaren [...]

Changelog #

0.1.2 #

  • Plugins upgraded workmanager and flutter_local_notifications

0.1.1 #

  • Improved package description
  • Minor documentation updates

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
110
points
163
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Offline-first background sync for Flutter apps. Queue any local Dart model while offline and sync it automatically to any REST API when connectivity returns. Built on WorkManager with battery awareness, lifecycle guards, auto-retry, dead-letter support, and local notifications. No code generation required.

Repository (GitHub)
View/report issues

Topics

#offline #sync #background #workmanager #hive

License

MIT (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