dio
A powerful HTTP package for Dart/Flutter, which supports Global settings, Interceptors, FormData, Aborting and canceling a request, Files uploading and downloading, Requests timeout, Custom adapters, etc. [Moved to: https://github.com/cfug/dio] (by flutterchina)
diox
A powerful HTTP package for Dart/Flutter, which supports Global settings, Interceptors, FormData, Aborting and canceling a request, Files uploading and downloading, Requests timeout, Custom adapters, etc. (by cfug)
dio | diox | |
---|---|---|
8 | 4 | |
11,371 | 143 | |
- | - | |
4.0 | 10.0 | |
about 2 years ago | about 2 years ago | |
Dart | Dart | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
dio
Posts with mentions or reviews of dio.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-12.
-
[Official] Dio is no longer being maintained.
With no release in the last 6 months, piling up of issues and launch of a new fork (diox), I felt something was going on with dio. Sadly, today I came across an official announcement (updated on the project repo 2 days back):
-
Dio caching experience
You might want to think twice about dio....we evaluated dio on a recent project and decided to avoid it after running into a blocker when setting a custom timeout (this bug: https://github.com/flutterchina/dio/issues/1454)
- Dio, maintaining session
- NO_RENEGOTIATION error when trying to do HTTPS
- Dio – A powerful HTTP client for Dart
-
GetX is dead, what to use next?
- and Dio for http requests
-
Thoughts on creating a library with Dart for browser and node
I also had some troubles choosing which Dart HTTP client to use. I've started with dio, but when I tried to read one of our bigger JSON responses (~1.5mb) my browser tab froze (there seems to be an old issue describing the same behavior). After that I've switched to the default dart's http package and it is working fine but it doesn't have builtin requests abort/cancellation.
- How to rerun function if it return x?
diox
Posts with mentions or reviews of diox.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-12.
-
[Official] Dio is no longer being maintained.
Your point of supply-chain risks is definitely valid, but given that some well-known devs contribute to diox and that they are pretty transparent on what they are doing ( https://github.com/cfug/diox/issues/29 ) IMO it still can be justified in this case.
-
Dio caching experience
There's a fork that's actively maintained though https://github.com/cfug/diox
What are some alternatives?
When comparing dio and diox you can also consider the following projects:
sentry-dart - Sentry SDK for Dart and Flutter
http_pagination - Parses a link header (web links) and returns pagination data
getx - Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with Get.
http-mock-adapter - A simple to use mocking package for Dio intended to be used in tests.
esc_pos_printer - ESC/POS (thermal, receipt) printing for Flutter & Dart
base_uri - A tiny wrapper around Uri to easily define a base uri. Supports api versions.