A bit stuck and wondered if anyone got the same issue. I have Windows 10 Flutter/Dart App that is downloading large (1GB) files from AWS. Using the same download on same machine but issuing a curl.exe command I get a sustained 65MB/sec. Requesting same file from same location using http.dart I'm only getting 5MB/Sec. I've read all the docs from http.dart and can't see what would be causing this. I've also searched online and only found a http slowdown on iOS for Flutter/Dart. Both downloads are running through same 1Gib connection and onto a SSD with plenty of room. No other intensive ops are running. Resource Monitor shows that CPU use is low, Disk access is minimal, Memory use is low, and Network use is only 5% of 1 GiB. "query" is purely the filename and location. I wondered whether it could be the port that is being used is restricting speed or some other network issue outside of the code. I'm going to try and run the code on a different PC to check if it's machine related. I tried building in debug and release.
final response1 = await http.get(
Uri.parse(query),
headers: {HttpHeaders.authorizationHeader: 'Bearer $bearerToken', 'range': 'bytes=$chunkStart-$chunkEnd'});
Thanks for any help.