dio_offline_queue 1.0.2 copy "dio_offline_queue: ^1.0.2" to clipboard
dio_offline_queue: ^1.0.2 copied to clipboard

A customizable Dio interceptor that queues failed requests during offline periods and replays them automatically when connectivity is restored.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add dio_offline_queue

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  dio_offline_queue: ^1.0.2

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:dio_offline_queue/dio_offline_queue.dart';
1
likes
160
points
161
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A customizable Dio interceptor that queues failed requests during offline periods and replays them automatically when connectivity is restored.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

collection, connectivity_plus, dio, flutter, meta

More

Packages that depend on dio_offline_queue