The http
package depends on dart:io
, which is not available to Web client applications, so you will not be able to use it (this is not the source of your warnings, but there is not much point debugging them when you can't use the package anyway).
Use something like adaj instead.
As far as I understand the http package is not part of the Dart core libraries, though it is worked on by the Dart team. I am not entirely sure what the decision is for making a library part of Dart core or not (dart:
prefix). In this case I assume it is because dart:io
already has http support.