Update README of examples

This commit is contained in:
Héctor Ramón Jiménez 2020-03-23 21:04:20 +01:00
parent 0d719bbdf3
commit 8e073d10d7
2 changed files with 7 additions and 4 deletions

View File

@ -73,6 +73,7 @@ A bunch of simpler examples exist:
- [`clock`](clock), an application that uses the `Canvas` widget to draw a clock and its hands to display the current time.
- [`counter`](counter), the classic counter example explained in the [`README`](../README.md).
- [`custom_widget`](custom_widget), a demonstration of how to build a custom widget that draws a circle.
- [`download_progress`](download_progress), a basic application that asynchronously downloads a dummy file of 100 MB and tracks the download progress.
- [`events`](events), a log of native events displayed using a conditional `Subscription`.
- [`geometry`](geometry), a custom widget showcasing how to draw geometry with the `Mesh2D` primitive in [`iced_wgpu`](../wgpu).
- [`integration`](integration), a demonstration of how to integrate Iced in an existing graphical application.

View File

@ -1,10 +1,12 @@
## Download Progress
## Download progress
Downloading a file asynchronously with a `Subscription` while displaying the progress with a `ProgressBar`.
A basic application that asynchronously downloads a dummy file of 100 MB and tracks the download progress.
The example implements a custom `Subscription` in the __[`download`](src/download.rs)__ module. This subscription downloads and produces messages that can be used to keep track of its progress.
<div align="center">
<a href="https://gfycat.com/watchfulwelcomeladybird">
<img src="https://gfycat.com/watchfulwelcomeladybird">
<a href="https://gfycat.com/wildearlyafricanwilddog">
<img src="https://thumbs.gfycat.com/WildEarlyAfricanwilddog-small.gif">
</a>
</div>