flutter_sync_engine 1.0.0
flutter_sync_engine: ^1.0.0 copied to clipboard
A Flutter offline-first sync engine plugin for local operation logging, push/pull transport, and conflict resolution.
Changelog #
All notable changes to this project will be documented in this file.
1.0.0 - 2025-12-26 #
Added #
- Initial release of
Flutter SyncEngine. - Core
SyncEngineclass to handle local <-> remote sync. SyncStoreinterface for local storage.- Example implementations:
FileSyncStoreHiveSyncStoreSQLiteSyncStore
SyncTransportinterface for backend communication.- Example transport implementations:
DummyTransport(in-memory)RestTransport(dummy REST API integration)
- Conflict resolution mechanism (
ConflictResolverinterface). - Built-in
LastWriteWinsconflict resolver. SyncOperationmodel for tracking CRUD operations.- Example Flutter app demonstrating:
- Adding notes
- Syncing with local and remote storage
- Switching storage and transport
0.0.1-dev.2+nonfunctional - 2025-12-22 #
Added #
- Refactored
HiveSyncStorewith properHive.initFlutter()initialization. - Added
SQLiteSyncStorefor persistent offline storage. _syncedflag added to entities for visual sync status.- Example app now visually distinguishes synced and pending notes:
- Green cloud: synced
- Orange cloud: pending
- Logs panel in example app shows operation events.
- Example app supports offline note creation with sync simulation.
- Pre-release versioning now compatible with
pub(0.0.1-dev.2+nonfunctional).
Fixed #
LastWriteWinsconflict resolver handles nullupdatedAtvalues._entitiesaccess is now via public getter (getEntities) to prevent private field errors.- Hive initialization updated to match latest
hive_flutterAPI.
Known Issues #
- DummyTransport only; no real backend integration.
- Offline sync logic is non-functional with real backend.
- Conflict resolver uses default local/remote comparison for demo purposes.
Notes #
- Development-only version, API may change in future.