Implement Empty widget

It can be useful if you want to fill some space with nothing.
This commit is contained in:
Héctor Ramón Jiménez 2019-12-30 19:20:59 +01:00
parent 7163e1d8b6
commit 8426bf953c
8 changed files with 191 additions and 4 deletions

View file

@ -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(