Commit graph

11 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
76698ff2b5
Make Command implementations platform-specific
This allows us to introduce a platform-specific `Action` to both `iced_native`
and `iced_web` and remove the `Clipboard` from `Application::update` to maintain
purity.

Additionally, this should let us implement further actions to let users query
and modify the shell environment (e.g. window, clipboard, and more!)
2021-09-02 13:29:34 +07:00
Héctor Ramón Jiménez
ae517b9fa0 Add clipboard argument to Application::update 2021-03-11 03:38:20 +01:00
Folyd
9f5c2eb0c4
Improve download_progress example (#283)
* Add advanced download example

* Rename to task fields and variables

* Cargo fmt advanced_download/src/download.rs

* Add progress bar for advanced download example

* Merge two download examples to single one

* Apply great review suggestions

* Change to url::Url instead of plain String

* Simplify `download_progress` example

* Update `README` of `download_progress` example

Co-authored-by: Héctor Ramón Jiménez <hector0193@gmail.com>
2021-02-12 22:00:52 +01:00
Héctor Ramón Jiménez
c1f79b40cf Make Application and Sandbox return a Result 2020-09-08 00:44:59 +02:00
Héctor Ramón Jiménez
c4c5216e3b Allow passing external state to Application::new 2020-03-30 18:10:15 +02:00
Héctor Ramón Jiménez
fd7d9622e3 Fix Recipe::hash in download_progress example 2020-03-24 14:07:34 +01:00
Héctor Ramón Jiménez
8e0dcd212d Fix retry button on download_progress example 2020-03-23 21:08:03 +01:00
Héctor Ramón Jiménez
0d719bbdf3 Handle errors in download_progress example 2020-03-23 20:43:55 +01:00
Héctor Ramón Jiménez
b92e1f9574 Rename downloader module to download 2020-03-23 20:37:30 +01:00
Héctor Ramón Jiménez
30c7db3f25 Improve download_progress example
- Use `reqwest` with `Response::chunk` to notify progress.
- Turn example state into an enum
2020-03-23 20:34:16 +01:00
Songtronix
fff333f89b Add example for download with progress tracking 2020-03-23 17:53:57 +01:00