dio_bridge 1.0.1 copy "dio_bridge: ^1.0.1" to clipboard
dio_bridge: ^1.0.1 copied to clipboard

A Flutter wrapper around Dio HTTP client providing unified API service interface with secure token management, functional error handling, and cross-platform support.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.0.1 - 2026-01-08 #

Added #

  • Added web package dependency for modern web API support

Changed #

  • Updated DioBridgeTokenManager to use conditional storage based on platform
  • Changed web token storage to use localStorage instead of unsupported secure storage
  • Updated documentation to clarify security differences between web and native platforms

Fixed #

  • Fixed web platform support that was previously declared but non-functional
  • Fixed token storage operations to work properly on web platforms using localStorage

1.0.0 - 2026-01-08 #

Added #

  • Added DioBridgeService class for unified HTTP client interface with Dio
  • Added getMethod(), postMethod(), putMethod(), deleteMethod(), and patchMethod() for full HTTP method support
  • Added DioBridgeTokenManager for secure encrypted token storage and management
  • Added DioBridgeTokenInterceptor for automatic Bearer token injection and 401 retry handling
  • Added DioBridgeTokenPair class for immutable token storage with expiration tracking
  • Added DioBridgeOption class for request configuration with headers, query parameters, and progress callbacks
  • Added DioBridgeHeader sealed class for predefined content-type header configurations
  • Added DioBridgeResponseType sealed class for type-safe response type handling
  • Added functional error handling using Either monad from fpdart for all HTTP methods
  • Added automatic token refresh capability with configurable callback for seamless 401 handling
  • Added progress tracking support for upload and download operations
  • Added cross-platform secure storage integration via database_bridge package
  • Added extension methods for seamless conversion between Dio and DioBridge types
  • Added comprehensive token lifecycle management with authentication state checking
0
likes
150
points
145
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter wrapper around Dio HTTP client providing unified API service interface with secure token management, functional error handling, and cross-platform support.

Repository (GitHub)
View/report issues

Topics

#http #api #dio #networking #flutter

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

database_bridge, dio, flutter, fpdart, freezed_annotation, web

More

Packages that depend on dio_bridge