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

Offline Sync + API Retry + Cache Manager for Flutter

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:syncflow/syncflow.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await SyncManager.initialize();

  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('SyncFlow Demo')),
        body: Center(
          child: ElevatedButton(
            onPressed: () async {
              await SyncManager.request(
                method: 'POST',
                url: 'https://jsonplaceholder.typicode.com/posts',
                body: {'title': 'Flutter', 'body': 'Offline Sync'},
              );
            },
            child: const Text('Send API'),
          ),
        ),
      ),
    );
  }
}
3
likes
120
points
5
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Offline Sync + API Retry + Cache Manager for Flutter

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

connectivity_plus, dio, flutter, hive, hive_flutter, retry, uuid

More

Packages that depend on syncflow