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)
http-mock-adapter
A simple to use mocking package for Dio intended to be used in tests. (by lomsa-dev)
Our great sponsors
diox | http-mock-adapter | |
---|---|---|
4 | 2 | |
143 | 60 | |
- | - | |
10.0 | 6.0 | |
about 1 year ago | 5 months 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.
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
http-mock-adapter
Posts with mentions or reviews of http-mock-adapter.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-08-04.
-
How to actually do TDD in Flutter
In this example, the app uses Firebase Auth. Because this is an external dependency, we're going to use a test double which mimics the behaviour of the real FirebaseAuth implementation. If you were using a different authentication system which worked over HTTP requests, you could use something like http_mock_adapter to fake your API responses.
-
Simulating HTTP request/response workflow for effective testing in Dart/Flutter via http-mock-adapter
We hope that you give http-mock-adapter a shot! If you find it useful, please 👍 the package, spread the word, and reach out to us at the issues' section if you encounter a bug or think of an awesome feature to improve the package!
What are some alternatives?
When comparing diox and http-mock-adapter you can also consider the following projects:
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]
flutter_convenient_test - Write and debug tests easily, with full action history, time travel, screenshots, rapid re-execution, video records, interactivity, isolation and more