Skip to main content

seamless_data_sync 0.0.12 copy "seamless_data_sync: ^0.0.12" to clipboard
seamless_data_sync: ^0.0.12 copied to clipboard

Flutter package designed to handle data synchronization between local storage and remote servers in offline-first applications. It provides seamless sync capabilities with conflict resolution, ensurin [...]

Seamless Data Sync #

pub package GitHub issues GitHub stars GitHub license

Seamless Data Sync is a Flutter package designed to handle data synchronization between local storage and remote servers in offline-first applications. It provides seamless sync capabilities with conflict resolution, ensuring that users can work offline and have their data automatically synced once they regain connectivity.

Features #

  • Two-way data synchronization (local ↔ remote)
  • Automatic and manual conflict resolution strategies
  • Offline data storage with encryption support
  • Network monitoring and background sync
  • Real-time sync with WebSocket support (coming soon)
  • Developer-friendly API with customizable sync intervals
  • Cross-platform support (Android, iOS, Web, Desktop)

Getting Started #

Installation #

Add the following to your pubspec.yaml:

dependencies:
  seamless_data_sync: ^0.1.0


Then run:

```dart
   flutter pub get

Usage #

Import the package in your Dart file:

import 'package:seamless_data_sync/seamless_data_sync.dart';

Usage #

  1. Initialize the Sync Manager
import 'package:seamless_data_sync/seamless_data_sync.dart';

void main() async {
  final seamlessManager = SeamlesManager(
    localStorage: LocalDatabase(), // Replace with your local storage implementation
    remoteService: RemoteService(), // Replace with your remote service implementation
    conflictResolutionStrategy: ConflictResolutionStrategy.lastWriteWins,
  );

  await seamlessManager.initialize();

  runApp(MyApp());
}

  1. Perform Sync Operations
// Trigger manual sync
await seamlessManager.sync();

// Listen for sync events
seamlessManager.onSyncComplete.listen((SyncResult result) {
  if (result.success) {
    print("Data sync completed successfully!");
  } else {
    print("Data sync failed: ${result.error}");
  }
});

4
likes
130
points
33
downloads

Documentation

API reference

Publisher

verified publisherdike.co.tz

Weekly Downloads

Flutter package designed to handle data synchronization between local storage and remote servers in offline-first applications. It provides seamless sync capabilities with conflict resolution, ensuring that users can work offline and have their data automatically synced once they regain connectivity

Homepage

License

MIT (license)

Dependencies

connectivity_plus, flutter, http, mockito, plugin_platform_interface, sqflite

More

Packages that depend on seamless_data_sync

Packages that implement seamless_data_sync