Skip to content

Commit

Permalink
Add spinner example.
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-uk1 committed Jun 12, 2020
1 parent 7f4a492 commit d15e9ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion druid/examples/widget_gallery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use druid::{
kurbo::Circle,
widget::{
prelude::*, Button, Checkbox, Flex, Label, List, Painter, ProgressBar, RadioGroup, Scroll,
Slider, Stepper, Switch, TextBox,
Slider, Spinner, Stepper, Switch, TextBox,
},
AppLauncher, Color, Data, Lens, Rect, Widget, WidgetExt, WidgetPod, WindowDesc,
};
Expand Down Expand Up @@ -175,6 +175,10 @@ fn ui_builder() -> impl Widget<AppData> {
.with_child(label_widget(
Switch::new().lens(AppData::checkbox_data),
"Switch",
))
.with_child(label_widget(
Spinner::new().fix_height(40.0).center(),
"Spinner",
)),
)
.vertical()
Expand Down

0 comments on commit d15e9ff

Please sign in to comment.