Commit 94c7ecb
Add progress bar to artifact downloads (flutter#182836)
<!--
Thanks for filing a pull request!
Reviewers are typically assigned within a week of filing a request.
To learn more about code review, see our documentation on Tree Hygiene:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md
-->
Follow-up to flutter#181808
Resolves flutter#14268
Adds a new `DownloadProgress` class that contains the logic for tracking
and formatting download progress, i.e., a progress bar, % display,
download speed, and ETA.
The rest is mostly ANSI control logic.
Bumped the width of the lines to 80 characters.
Before:
<img width="799" height="716" alt="image"
src="https://github.com/user-attachments/assets/f479b1b4-bb2b-4c90-bec4-125fba805270"
/>
After:
<img width="886" height="747" alt="image"
src="https://github.com/user-attachments/assets/99e08a23-df7f-4aa3-8945-40bc1be13e4a"
/>
## Pre-launch Checklist
- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [x] I signed the [CLA].
- [x] I listed at least one issue that this PR fixes in the description
above.
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [ ] I followed the [breaking change policy] and added [Data Driven
Fixes] where supported.
- [x] All existing and new tests are passing.
---------
Co-authored-by: Ben Konyi <bkonyi@google.com>1 parent 41670b7 commit 94c7ecb
6 files changed
Lines changed: 653 additions & 12 deletions
File tree
- packages/flutter_tools
- lib/src
- base
- test/general.shard
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
1404 | 1404 | | |
1405 | 1405 | | |
1406 | 1406 | | |
1407 | | - | |
| 1407 | + | |
1408 | 1408 | | |
1409 | 1409 | | |
1410 | 1410 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
200 | 204 | | |
201 | 205 | | |
202 | 206 | | |
| |||
0 commit comments