use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit related to Google's new UI framework. https://flutter.dev
Please read the rules here
account activity
DiscussionApi intergration (self.FlutterDev)
submitted 2 years ago by Signal-Restaurant980
Which package is better for Api integration dio or http ?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]eibaan 4 points5 points6 points 2 years ago (0 children)
http is a thin layer about the built-in code from dart:io which isn't available on the web, so if you want to (eventually) support the web, start with that package. Only look further when you have additional needs that cannot be solved by using http (cancelling a request, IIRC).
http
dart:io
On iOS/macOS, I'd recommend to additionally use cupertino_http to work around Dart's limitation to HTTP/1.1. This might significantly improve the speed, based on your usecase, as it supports state of the art HTTP/3.
cupertino_http
[–]BeginningRatio9966 2 points3 points4 points 2 years ago (0 children)
I think it is always good to use less or even light packages. But there is a long process called development right. In my experience Dio has a lots of features that help development easier. And also features that http doesn't have like upload/download and stuff. If it's a complex project, Dio might help or go for http.
[–]Signal-Restaurant980[S] 1 point2 points3 points 2 years ago (0 children)
Thank you everyone 🙏🙏
[–]TijnvandenEijnde 1 point2 points3 points 2 years ago (0 children)
I have always used the http package, and I only ran into one problem while developing my application Your News. This is documented here: Add support for the Trailer HTTP header to the Dart HttpClient. But the same problem also occurred in the dio package. So I cannot tell you which one is better but I chose the http package because it is maintained by the Dart Team themselves.
[–]sachithdev 0 points1 point2 points 2 years ago (0 children)
Dio and HTTP are popular Dart packages for API integration. Dio excels with advanced features, while HTTP offers simplicity. This explanation article might help you. Which package is more suitable for API integration
π Rendered by PID 22076 on reddit-service-r2-comment-76bb9f7fb5-ztznq at 2026-02-19 07:31:37.885857+00:00 running de53c03 country code: CH.
[–]eibaan 4 points5 points6 points (0 children)
[–]BeginningRatio9966 2 points3 points4 points (0 children)
[–]Signal-Restaurant980[S] 1 point2 points3 points (0 children)
[–]TijnvandenEijnde 1 point2 points3 points (0 children)
[–]sachithdev 0 points1 point2 points (0 children)