api_client_dio 0.1.0
api_client_dio: ^0.1.0 copied to clipboard
A simple, opinionated Dio wrapper for Flutter. Handles base URL, token injection, 401 refresh/redirect, logging, and timeouts out of the box. Framework-agnostic.
0.1.0 #
- Initial release
- ApiClient with configurable timeouts, headers, and base URL
- TokenProvider abstraction for authentication tokens
- ApiInterceptor with automatic Bearer token injection
- 401 detection with optional token refresh and retry
- Built-in request/response logging interceptor
- Full CRUD methods (GET, POST, PUT, PATCH, DELETE)
- Runtime base URL switching
- Zero dependencies aside from Dio