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

a thin wrapper over the dio HTTP client that simplifies networking in Flutter.

2.0.0 #

  • BREAKING: move Chucker-specific APIs out of package:dio_extended/diox.dart into package:dio_extended/diox_chucker.dart
  • Add the new diox_chucker.dart entrypoint for ShakeForChucker, ShakeChuckerConfigs, and createChuckerInterceptor()
  • Add optional interceptors support to DioExtended so Chucker can be wired explicitly without coupling the core entrypoint to platform-specific UI dependencies
  • Raise the lower bound of chucker_flutter to >=1.9.2 to match the navigatorKey API used by ShakeChuckerConfigs
  • Declare support for Windows, Linux, and macOS in package metadata

1.0.20 #

  • Fix ApiResult.isSuccess to use an explicit success flag instead of inferring from data != null, so successful responses with an empty body (e.g. 204 No Content or ApiResult<void>) are no longer reported as failures
  • Add ApiResult.isIdle getter and improve toString() for the idle state
  • Allow ApiResult.success to accept null data and stop callApiRequest from throwing on successful responses with a null/empty body
  • Handle TimeoutException (and other unexpected errors) in callApiRequest so the optional timeout no longer escapes as an unhandled exception
  • Migrate Chucker integration from the deprecated navigatorObserver to navigatorKey (ShakeChuckerConfigs.navigatorKey) for reliable wiring with nested navigators
  • Deprecate ShakeChuckerConfigs.navigatorObserver (kept for backward compatibility)
  • Update dependencies to the latest compatible versions and refresh the example app
  • Revamp README with a richer, more interactive layout (badges, tables, collapsible sections)

1.0.19 #

  • Improve Content-Type handling between FormData and non-FormData requests to avoid cross-request header conflicts
  • Preserve custom non-JSON Content-Type on retry (for example text/plain or application/x-www-form-urlencoded)
  • Prevent refresh deadlock risk when refresh flow uses the same Dio instance
  • Harden refresh completer error handling to avoid unhandled async errors
  • Make debug logging safer when response data is not JSON-encodable

1.0.18 #

  • Prevent infinite refresh-token loop by allowing only one refresh/retry cycle per request chain
  • Add retry marker guard so requests that still return 401 after retry are not refreshed repeatedly

1.0.17 #

  • Fix reset header if for non FormData type request

1.0.16 #

  • Fix retryRequest if request type FormData

1.0.15 #

  • Sparate headers and headersAsync based on needed

1.0.14 #

  • Add idle callback on ApiResult

1.0.13 #

  • Set headers as async function to support preparing headers using async process

1.0.12 #

  • Adjust completer to prevent multiple refresh token request

1.0.11 #

  • Adjust logging form data (multiparts) data delivery

1.0.10 #

  • Fix shake for chucker integration

1.0.9 #

  • Separate content type FormData and others

1.0.8 #

  • Upgrade chucker 1.9.0 (No need override)

1.0.7 #

  • Format with dart format

1.0.6 #

  • Add custom timout duration
  • Add custom global error and global error network message

1.0.5 #

  • Add supported platform
  • Update Readme.md
  • Optimize code

1.0.4 #

  • Fix overriding refresh token function

1.0.3 #

  • Update Documentation & Example Implementation

1.0.2 #

  • Update table of content on README

1.0.1 #

  • Complete documentation
  • Optimizing functions

1.0.0 #

  • Initial version.
4
likes
150
points
309
downloads

Documentation

API reference

Publisher

verified publisheranonimeact.com

Weekly Downloads

a thin wrapper over the dio HTTP client that simplifies networking in Flutter.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

chucker_flutter, dio, flutter, http_parser, mime, shake

More

Packages that depend on dio_extended