offline_storage_sync 0.0.1
offline_storage_sync: ^0.0.1 copied to clipboard
A package that helps developers manage offline data storage and synchronization with a backend service.
Offline Storage Sync #
A Flutter package to manage offline data storage and synchronization with a backend service. It supports local databases, caching, and conflict resolution strategies.
Features #
- Local storage with SQLite
- Data caching with Hive
- Backend synchronization
- Conflict resolution strategies
Usage #
import 'package:offline_storage_sync/offline_storage_sync.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
final localStorage = LocalStorage();
await localStorage.init();
final cacheStorage = CacheStorage();
await cacheStorage.init();
final syncService = SyncService(localStorage, cacheStorage, 'https://your-backend-url.com');
runApp(MyApp(syncService: syncService));
}