Search packages, repositories and app categories

Package detailsv1.8.0

native_dio_adapter

A client for dio which makes use of cupertino_http and cronet_http to delegate HTTP requests to the native platform.

AndroidiOSmacOSWindowsLinux
30-day downloads
136K
Likes
68
Pub points
160

Install package

flutter pub add native_dio_adapter

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Dio plugin that delegates HTTP requests to native platform implementations using cupertino_http and cronet_http, improving performance and reliability on Android, iOS, macOS, Windows, and Linux. It leverages system-level networking stacks for better efficiency and compatibility with platform-specific features. Ideal for apps requiring optimized network behavior across multiple platforms.

Use cases

  • High-performance HTTP requests
  • Cross-platform network optimization
  • Leveraging native HTTP stack features
  • Improved request handling on mobile and desktop
  • Integration with existing Dio-based applications

Key features

  • Uses native HTTP implementations
  • Supports Android, iOS, macOS, Windows, and Linux
  • Enhanced performance via platform-native networking
  • Seamless integration with Dio
  • Automatic fallback and platform-specific routing

Suitable for

  • Apps needing optimal network performance
  • Developers using Dio for HTTP operations
  • Projects targeting multiple platforms
  • Teams prioritizing native networking capabilities
  • Applications requiring reliable and fast HTTP communication

Considerations

  • Requires platform-specific setup for full functionality
  • May increase app size due to native dependencies
  • Limited customization compared to pure Dio
  • Depends on external native libraries (cupertino_http, cronet_http)
  • Not suitable for environments without native HTTP support

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

dio

Language: English | 简体中文

This is the base repo of the dio project. Please move to specific paths for project instructions.

Don't forget to add #dio topic to your published dio-related packages! See more: https://dart.dev/tools/pub/pubspec#topics

Versioning

Before you upgrade: Breaking changes might happen in major and minor versions of packages.
See the Migration Guide for the complete breaking changes list.

To know about our compatibility policy, see the Compatibility Policy doc.

All Packages

dio
Plugins
  • cookie_manager: link Pub
  • compatibility_layer: link Pub
  • http2_adapter: link Pub
  • native_dio_adapter: link Pub
  • web_adapter: link Pub
Examples
  • example: link
  • example_flutter_app: link

Copyright & License

The project and its underlying projects are originally authored by @wendux with the organization @flutterchina, started being maintained by Chinese Flutter User Group (@cfug) since 2023.

The project consents the MIT license.

Categories

Dependencies

Dependency list 5 items

Source repository

Projects using this package