Skip to content

Progress for web not working when download file #1305

Closed
@alex9153

Description

@alex9153
	```

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    package:httptype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions