diff options
author | 2019-12-30 19:20:59 +0100 | |
---|---|---|
committer | 2019-12-30 19:20:59 +0100 | |
commit | 8426bf953cb50f3b7fcb1e0ec8c2fdf22d2b01af (patch) | |
tree | 81f2ccbab0eba1fec581abc6d0ec0531fd9113f4 /examples/tour.rs | |
parent | 7163e1d8b669b61d6fba6528c2a28fde3bfb72a0 (diff) | |
download | iced-8426bf953cb50f3b7fcb1e0ec8c2fdf22d2b01af.tar.gz iced-8426bf953cb50f3b7fcb1e0ec8c2fdf22d2b01af.tar.bz2 iced-8426bf953cb50f3b7fcb1e0ec8c2fdf22d2b01af.zip |
Implement `Empty` widget
It can be useful if you want to fill some space with nothing.
Diffstat (limited to 'examples/tour.rs')
-rw-r--r-- | examples/tour.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/tour.rs b/examples/tour.rs index da05b396..fcace9c3 100644 --- a/examples/tour.rs +++ b/examples/tour.rs @@ -1,6 +1,6 @@ use iced::{ button, scrollable, slider, text_input, Button, Checkbox, Color, Column, - Container, Element, HorizontalAlignment, Image, Length, Radio, Row, + Container, Element, Empty, HorizontalAlignment, Image, Length, Radio, Row, Sandbox, Scrollable, Settings, Slider, Text, TextInput, }; @@ -67,7 +67,7 @@ impl Sandbox for Tour { ); } - controls = controls.push(Column::new()); + controls = controls.push(Empty::new().width(Length::Fill)); if steps.can_continue() { controls = controls.push( |