native_dio_adapter
A client for dio which makes use of cupertino_http and cronet_http to delegate HTTP requests to the native platform.
1.8.0
162K downloads/mo
#928 most downloaded on pub.dev
cfug/dio
What this package is like to depend on
Last release 26 days ago
29 Jul 2026
Release timing varies
gaps range from 8 days to 12 months
Nearly every release is documented
notes for 14 of 14 stable releases
1 version withdrawn
withdrawn after publishing
4 years old
15 releases · first in 2023
4 releases in the last 12 months
see the full history below
Release timeline
15 releases · Feb 2023 to Jul 2026
2024
2025
2026
Releases
latest 15-
1.8.029 Jul 2026Release notes
Open source →What's new
- Support
cronet_http1.9.0 by upgradingjnito^1.0.0and migrating
the Cronet-provider-disabled classifier fromJniExceptiontoJThrowable.
The minimum Dart SDK is now3.4.0and the minimum Flutter version is now
3.35.6, following the requirements ofjni1.0.0 andcronet_http1.9.0.
Fixes #2581.
Release notes
Open source →- Support
cronet_http1.9.0 by upgradingjnito^1.0.0and migrating the Cronet-provider-disabled classifier fromJniExceptiontoJThrowable. The minimum Dart SDK is now3.4.0and the minimum Flutter version is now3.35.6, following the requirements ofjni1.0.0 andcronet_http1.9.0. Fixes #2581.
- Support
-
1.7.025 Jul 2026Release notes
Open source →What's new
- Add opt-in
createFallbackAdaptertoNativeAdapter. On Android, when the
device has installed Cronet providers but every provider is disabled (for
example AOSP emulators or devices without Google Play services), the
supplied factory returns anyHttpClientAdapterand requests continue via
that adapter. Detection is strictly limited to Cronet's
provider-disabledRuntimeException; every other Cronet error is
propagated unchanged. Adapter selection is sticky for the lifetime of the
NativeAdapter. Fixes
#2444.
Release notes
Open source →- Add opt-in
createFallbackAdaptertoNativeAdapter. On Android, when the device has installed Cronet providers but every provider is disabled (for example AOSP emulators or devices without Google Play services), the supplied factory returns anyHttpClientAdapterand requests continue via that adapter. Detection is strictly limited to Cronet's provider-disabledRuntimeException; every other Cronet error is propagated unchanged. Adapter selection is sticky for the lifetime of theNativeAdapter. Fixes #2444.
- Add opt-in
-
1.6.010 Jun 2026Release notes
Open source →What's new
- Fix memory leak on Android: complete the
abortTriggerfuture after the
response stream is consumed, allowingCronetUrlRequestJNI references
and upload body bytes to be garbage collected. - Support
cupertino_http3.0.0
Release notes
Open source →- Fix memory leak on Android: complete the
abortTriggerfuture after the response stream is consumed, allowingCronetUrlRequestJNI references and upload body bytes to be garbage collected. - Support
cupertino_http3.0.0
- Fix memory leak on Android: complete the
-
1.5.127 Jan 2026Release notes
Open source →- Support request cancellation for native HTTP clients via use of
AbortableRequest(introduced in http package from version 1.5.0) - Add timeout handling for
sendTimeout,connectTimeout, andreceiveTimeoutinConversionLayerAdapter
- Support request cancellation for native HTTP clients via use of
-
1.5.021 Jul 2025Release notes
Open source →- Close the
CronetEnginewhen closing theCronetClientby default. - Expose underlying adapters from all adapters.
- Close the
-
1.4.001 Jan 2025 -
1.3.030 Dec 2023Release notes
Open source →- Provide fix suggestions for
dart fix. - Bump cronet_http version to
>=0.4.0 <=2.0.0.
- Provide fix suggestions for
-
1.2.030 Nov 2023Release notes
Open source →- Adds
createCronetEngineandcreateCupertinoConfigurationto deprecatecronetEngineandcupertinoConfigurationfor theNativeAdapter, to avoid platform exceptions. - Improve the request stream byte conversion.
- Adds
-
1.1.122 Nov 2023 -
1.1.031 Oct 2023Release notes
Open source →- Bump
cronet_httpversion. - Minimal required Dart version is now 3.1.
- Minimal required Flutter version is now 3.13.0.
- Allow case-sensitive header keys with the
preserveHeaderCaseflag through options.
- Bump
-
1.0.005 Jun 2023 withdrawnNothing published for this version
-
1.0.0+106 Jun 2023Release notes
Open source →- Update dependencies to make use of stable versions.
- Replace
DioErrorwithDioException. - Fix
onReceiveProgresscallback.
-
1.0.0+203 Aug 2023 -
0.1.014 Mar 2023Release notes
Open source →- Bump cupertino_http and cronet_http versions.
- Improve code formats according to linter rules.
-
0.0.113 Feb 2023