offline_data_sync 0.0.1 copy "offline_data_sync: ^0.0.1" to clipboard
offline_data_sync: ^0.0.1 copied to clipboard

discontinued

Flutter package for offline data synchronization

Offline Data Sync Plugin #

A Flutter plugin for synchronizing data offline, including form submissions and other data transactions.

Features #

  • Allows seamless synchronization of data offline and online.
  • Supports dynamic selection of database helper and API service.
  • Provides flexibility to specify a custom destination screen upon successful data submission.

Installation #

Add offline_data_sync to your pubspec.yaml file:

dependencies:
  offline_data_sync: ^1.0.0

Usage
Import the package in your Dart code:

import 'package:offline_data_sync/offline_data_sync.dart';

Use the handleDataSync function to synchronize data:

handleDataSync(
  context: context,
  data: {
    'name': nameController.text,
    'email': emailController.text,
  },
  successSnackBar: SnackBar(
    content: Text('Data synchronized successfully'),
  ),
  isSyncing: ValueNotifier(false),
  dbHelper: DBHelper(),
  apiService: ApiService(),
  destinationScreen: CustomDataScreen(), // Specify your custom data screen here
);

0
likes
120
points
2
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter package for offline data synchronization

Homepage

Documentation

API reference

License

unknown (license)

Dependencies

connectivity, flutter, http, path_provider, sqflite

More

Packages that depend on offline_data_sync