Skip to main content

api_provider 2.0.0 copy "api_provider: ^2.0.0" to clipboard
api_provider: ^2.0.0 copied to clipboard

A thin, testable layer over Dio for Flutter apps - bearer-token auth, automatic token refresh with retry, secure token storage, and friendly error handling.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add api_provider

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

dependencies:
  api_provider: ^2.0.0

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:api_provider/api_provider.dart';
4
likes
150
points
115
downloads

Documentation

API reference

Publisher

verified publisherperitumsolution.pk

Weekly Downloads

A thin, testable layer over Dio for Flutter apps - bearer-token auth, automatic token refresh with retry, secure token storage, and friendly error handling.

Repository (GitHub)
View/report issues

Topics

#http #dio #networking #authentication #api

Funding

Consider supporting this project:

buymeacoffee.com

License

MIT (license)

Dependencies

dio, flutter, flutter_secure_storage

More

Packages that depend on api_provider