flutter_offline_sync_core 0.1.0
flutter_offline_sync_core: ^0.1.0 copied to clipboard
Offline-first sync engine for Flutter/Dart apps. Models writes as a DAG of Jobs and Steps so that dependent API calls (e.g. upload image -> use its URL in a follow-up request) can be queued offline, e [...]
0.1.0 #
Initial public release.
Features #
- Job/Step write queue with
SyncEngineand Drift-backedSyncDatabase JobBuilderfor enqueueing multi-step DAGs (dependsOn, cross-job deps)- Partial retry: successful steps keep output; only failed steps re-run
- Conflict handling via
SyncStepResult.conflict+resolveConflict syncAllauto-requeues retryable failed jobs (respects retry budget / backoff)isSyncing/isSyncingStreamfor foreground busy UI- Interrupted-work recovery (
recoverInterruptedWork) for stuckrunningrows - Cross-isolate DB lock + coalescing concurrent
syncAllcalls pruneCompletedJobsto bound history of success/cancelled jobs- Free-form job
metafor UI labels
Notes #
- Requires Drift codegen artifacts (
lib/src/db/database.g.dartis included)