iced/examples
2020-01-08 19:11:05 +09:00
..
resources Add svg example 2019-12-15 06:31:53 +01:00
counter.rs Add simple counter example 2019-11-26 22:31:46 +01:00
custom_widget.rs Simplify custom_widget example 2019-12-07 07:46:31 +01:00
events.rs Write docs for subscriptions and reorganize a bit 2019-12-14 05:56:46 +01:00
geometry.rs Rename Geometry2D to Mesh2D and move it to iced_wgpu 2020-01-02 19:25:00 +01:00
paint.rs Remove hash_layout 2020-01-08 19:11:05 +09:00
pokedex.rs Use surf in pokedex example 2019-12-14 00:32:05 +01:00
progress_bar.rs Expose ProgressBar in iced crate 2020-01-04 14:14:28 +01:00
README.md Update examples README 2019-11-20 10:54:40 +01:00
stopwatch.rs Write docs for subscriptions and reorganize a bit 2019-12-14 05:56:46 +01:00
svg.rs Put svg rendering behind a feature gate 2019-12-15 06:45:20 +01:00
todos.rs Port todos to async_std 2019-12-14 20:48:32 +01:00
tour.rs Rename Empty widget to Space 2019-12-30 21:33:27 +01:00

Examples

Iced moves fast and the master branch can contain breaking changes! If you want to learn about a specific release, check out the release list.

Tour

A simple UI tour that can run both on native platforms and the web! It showcases different widgets that can be built using Iced.

The tour file contains all the code of the example! All the cross-platform GUI is defined in terms of state, messages, update logic and view logic.

You can run the native version with cargo run:

cargo run --example tour

The web version can be run by following the usage instructions of iced_web or by accessing iced.rs!

Todos

A simple todos tracker inspired by TodoMVC. It showcases dynamic layout, text input, checkboxes, scrollables, icons, and async actions! It automatically saves your tasks in the background, even if you did not finish typing them.

All the example code is located in the todos file.

You can run the native version with cargo run:

cargo run --example todos

We have not yet implemented a LocalStorage version of the auto-save feature. Therefore, it does not work on web yet!

Coffee

Since Iced was born in May, it has been powering the user interfaces in Coffee, an experimental 2D game engine.