flutter_offline_sync_queue 0.1.1
flutter_offline_sync_queue: ^0.1.1 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.1 #
- Improved package description
- Minor documentation updates
0.1.0 #
Initial release.
- Generic
SyncRecordserialised as a plainMapin Hive — noTypeAdapterorbuild_runnerrequired by consumers SyncEntityConfig<T>withtoJson/fromJson,buildPathSuffix,extractServerId,onSuccess/onFailurehooksSyncOrchestratorwith ordered pre-flight guards: foreground, battery, pending-data, connectivity, authSyncEnginewith per-record retry, dead-letter (SyncStatus.dead), and interrupt supportBackgroundSyncDispatcher+BackgroundSyncManagerfor WorkManager integrationAppLifecycleObserverpersists foreground flag toSharedPreferencesfor background isolate accessSyncNotificationServicefor per-cycle summary notificationsSyncErrorHandlerconverts Dio / network exceptions to user-friendly stringsConnectivityCheckerwith optional VPN callback- Full example app
- Unit tests (no Flutter binding or Hive required)