summaryrefslogtreecommitdiffstats
path: root/examples/custom_widget/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'examples/custom_widget/README.md')
-rw-r--r--examples/custom_widget/README.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/custom_widget/README.md b/examples/custom_widget/README.md
new file mode 100644
index 00000000..3d6cf902
--- /dev/null
+++ b/examples/custom_widget/README.md
@@ -0,0 +1,18 @@
+## Custom widget
+
+A demonstration of how to build a custom widget that draws a circle.
+
+The __[`main`]__ file contains all the code of the example.
+
+<div align="center">
+ <a href="https://gfycat.com/jealouscornyhomalocephale">
+ <img src="https://thumbs.gfycat.com/JealousCornyHomalocephale-small.gif">
+ </a>
+</div>
+
+You can run it with `cargo run`:
+```
+cargo run --package custom_widget
+```
+
+[`main`]: src/main.rs