flutter_sync_tree 1.0.2
flutter_sync_tree: ^1.0.2 copied to clipboard
A high-performance, hierarchical synchronization framework with weighted progress and throttling for Flutter.
1.0.2 #
🔄 Breaking Changes #
- Naming Alignment: Renamed
SyncTypetoSyncStatusfor better semantic clarity and state representation. - Stream Renaming: Renamed
syncStreamtoeventsinSyncNodeto follow standard event-driven naming conventions. - Callback Signature: Updated
OnSyncNotifyparameters to(SyncStatus status, SyncNode origin)to support source tracking.
✨ New Features #
- SyncState System: Introduced a
Sealed Classhierarchy (SyncInitial,SyncInProgress,SyncSuccess,SyncFailure,SyncPaused,SyncStopped) for easier UI integration with pattern matching. - Origin Tracking: Added the
originfield to events, allowing developers to identify exactly which child node triggered an update within complex trees.
📈 Improvements #
- UX-Focused Progress: Updated
SyncTaskStateto includelatest(up-to-date) operations in progress calculations, ensuring the progress bar reaches 100% when data is already synchronized. - Throttler Refinement: Enhanced floating-point
precisionhandling and addedfps30/fps60factory constructors for optimized UI performance. - Documentation: Revamped README with architectural diagrams, weighted progress formulas, and Riverpod integration examples.
1.0.1 #
- Minor documentation fixes.
1.0.0 #
- Initial release of flutter_sync_tree.
- Support for Hierarchical Sync Tree, Weighted Progress, and Throttling.