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

A Flutter/Dart package that provides Dio-based API handling with token refresh.

api_client #

A lightweight and reusable API client wrapper around Dio for Flutter and Dart projects.
It provides simple methods for GET, POST, PUT, and DELETE requests, along with support for file uploads and token refresh handling.


Features #

✅ Simple API calling structure
✅ Token authentication (Bearer token support)
✅ Automatic token refresh handling
✅ File upload (multipart/form-data)
✅ Works in both Flutter and pure Dart projects
✅ Customizable headers & interceptors


Installation #

Add this to your pubspec.yaml:

dependencies:
  api_client: ^0.0.1
0
likes
130
points
114
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter/Dart package that provides Dio-based API handling with token refresh.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

dio, get_secure_storage, json_annotation, jwt_decoder, retrofit

More

Packages that depend on my_api_package