http
http copied to clipboard
Progress for web not working when download file
```
var client = http.Client();
var request = http.Request("GET", Uri.parse("$root/$uri"));
client.send(request).then((response) {
double progress = 0.0;
int receved = 0;
response.stream.listen((value) {
receved += value.length;
progress = receved / contentLength;
}
Handler of response.stream.listen called once with all downloaded bytes
Unfortunately, that is a limitation of the underlying XMLHttpRequest implementation. I believe that package:fetch_client does not have this issue.
Fixed by #1401