Our great sponsors
-
dio
Discontinued 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)
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
I've already converted 70% of the JS implementation in Dart, only for the browser for test, but the result was not as good as I hoped. The bundle size at the moment is ~110kb (with the -O4 flag). And I happen to learn that using async/await additionally increases the size with ~30kb (this angulardart issue is the only explanation I could found).
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.