summaryrefslogtreecommitdiffstats
path: root/examples/download_progress/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-02-21Use new `async ||` closure syntax :tada:Libravatar Héctor Ramón Jiménez1-1/+1
2025-02-21Update all `examples` to Rust 2024Libravatar Héctor Ramón Jiménez2-2/+2
2025-02-11Replace `with` function with `Function` traitLibravatar Héctor Ramón Jiménez1-2/+2
2025-02-11Introduce `with` helper and use `sipper` in `gallery` exampleLibravatar Héctor Ramón Jiménez1-2/+2
2025-02-11Introduce `Task::map_with`Libravatar Héctor Ramón Jiménez1-1/+1
2025-02-11Use `sipper` in `download_progress`Libravatar Héctor Ramón Jiménez2-38/+37
2024-11-22Use `Task::run` in `download_progress` exampleLibravatar Héctor Ramón Jiménez2-43/+44
2024-09-10Fix `download_progress` and make it work on WasmLibravatar Héctor Ramón Jiménez2-76/+47
Co-authored-by: Skygrango <skygrango@gmail.com>
2024-07-12Re-export variants of `Length` and `alignment` typesLibravatar Héctor Ramón Jiménez1-5/+5
2024-07-12Introduce helper methods for alignment for all widgetsLibravatar Héctor Ramón Jiménez1-5/+5
2024-07-05Hide `Subscription` internalsLibravatar Héctor Ramón Jiménez1-4/+10
.. and introduce `stream::channel` helper
2024-06-19Introduce `daemon` API and unify shell runtimesLibravatar Héctor Ramón Jiménez1-3/+7
2024-05-03Introduce `center` widget helperLibravatar Héctor Ramón Jiménez1-9/+3
... and also make `center_x` and `center_y` set `width` and `height` to `Length::Fill`, respectively. This targets the most common use case when centering things and removes a bunch of boilerplate as a result.
2024-04-08Remove extra Download struct from dowload_progress exampleLibravatar alex-ds131-6/+0
2024-03-18refactor: replace `text(format!(` with `text` macroLibravatar Richard Custodio1-1/+1
2024-03-17Move `Program` to `application` moduleLibravatar Héctor Ramón Jiménez1-7/+3
2024-03-16Remove `sandbox` by making `application` more generic :tada:Libravatar Héctor Ramón Jiménez1-3/+7
2024-03-16Make `sandbox` helper take a `title` as wellLibravatar Héctor Ramón Jiménez1-2/+1
2024-03-16Introduce `Program` APILibravatar Héctor Ramón Jiménez1-30/+21
2024-01-10Introduce `Widget::size_hint` and fix further layout inconsistenciesLibravatar Héctor Ramón Jiménez1-10/+9
2023-09-20Run `cargo fmt`Libravatar Héctor Ramón Jiménez1-1/+1
2023-09-20Fix `clippy::match-wildcard-for-single-variants`Libravatar Héctor Ramón Jiménez1-1/+1
2023-04-11Implement `subscription::channel` and simplify `unfold`Libravatar Héctor Ramón Jiménez1-10/+7
2023-03-05Remove generic `Hasher` and `Event` from `subscription::Recipe`Libravatar Héctor Ramón Jiménez1-1/+1
2023-01-27Fix: Clippy lint 'uninlined_format_args'Libravatar 13r0ck1-1/+1
2022-07-27Replace stateful widgets with new `iced_pure` APILibravatar Héctor Ramón Jiménez1-58/+40
2022-07-09Fix `clippy` lints for all crates and featuresLibravatar Héctor Ramón Jiménez1-5/+4
... and check those in CI as well!
2022-05-14Draft first-class `Theme` supportLibravatar Héctor Ramón Jiménez1-3/+6
RFC: https://github.com/iced-rs/rfcs/pull/6
2022-03-15Remove unnecessary `unreachable!` in `download_progress` exampleLibravatar Héctor Ramón Jiménez1-3/+1
2022-01-17Simplify `run` and `unfold` helpers to build a `Subscription`Libravatar Héctor Ramón Jiménez1-70/+52
2022-01-16Draft `websocket` example :tada:Libravatar Héctor Ramón Jiménez1-0/+1
2022-01-15Use `subscription::run` for `download_progress` exampleLibravatar Héctor Ramón Jiménez1-84/+69
2021-09-20Refactor alignment types into an `alignment` moduleLibravatar Héctor Ramón Jiménez1-6/+6
2021-09-20Introduce and use `CrossAlign` enum for `Column` and `Row`Libravatar Héctor Ramón Jiménez1-6/+6
2021-09-02Make `Command` implementations platform-specificLibravatar Héctor Ramón Jiménez1-7/+3
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-03-11Add `clipboard` argument to `Application::update`Libravatar Héctor Ramón Jiménez1-3/+7
2021-02-12Improve download_progress example (#283)Libravatar Folyd2-77/+164
* 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>
2020-09-08Make `Application` and `Sandbox` return a `Result`Libravatar Héctor Ramón Jiménez1-1/+1
2020-03-30Allow passing external state to `Application::new`Libravatar Héctor Ramón Jiménez1-1/+2
2020-03-24Fix `Recipe::hash` in `download_progress` exampleLibravatar Héctor Ramón Jiménez1-0/+2
2020-03-23Fix retry button on `download_progress` exampleLibravatar Héctor Ramón Jiménez1-2/+4
2020-03-23Handle errors in `download_progress` exampleLibravatar Héctor Ramón Jiménez2-11/+43
2020-03-23Rename `downloader` module to `download`Libravatar Héctor Ramón Jiménez2-9/+9
2020-03-23Improve `download_progress` exampleLibravatar Héctor Ramón Jiménez2-111/+115
- Use `reqwest` with `Response::chunk` to notify progress. - Turn example state into an enum
2020-03-23Add example for download with progress trackingLibravatar Songtronix2-0/+215