flutter_smart_repository 0.0.2
flutter_smart_repository: ^0.0.2 copied to clipboard
A flexible, offline-first, multi-platform data repository designed for Flutter applications.
0.0.2 #
- Documentation and release polish: README links (pub.dev, Contributing), FLUTTER_SMART_REPOSITORY_README rename and updates, pubspec
documentationand CHANGELOG format.
0.0.1 #
Initial release.
Features #
- SmartRepository: Offline-first repository with
getAll,getById,save(create),update,delete. - Fetch policies:
cacheOnly,networkOnly,cacheFirst,networkFirst,staleWhileRevalidate. - SyncEngine: Processes offline queue when connectivity returns; optional conflict resolution.
- Hive support:
HiveLocalDataSource,HiveOfflineQueue(configurable box name). - Typed errors:
NetworkFailure,ServerFailure,CacheFailure. - Conflict resolution:
TimestampConflictResolver, customConflictResolver<T>. - Optional: Encryption service, SyncInspector, DevTools integration.
Documentation #
- README with installation, getting started, use cases, and usage.
- FLUTTER_SMART_REPOSITORY_README.md for architecture and roadmap.
- Example app in
example/.