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