Add some horizontal padding to toggler section in tour example

This commit is contained in:
Héctor Ramón 2021-06-03 20:35:26 +07:00
parent ef5f46bcdd
commit d3d6f3efb3

View File

@ -565,11 +565,14 @@ impl<'a> Step {
.push(Text::new( .push(Text::new(
"A toggler is mostly used to enable or disable something.", "A toggler is mostly used to enable or disable something.",
)) ))
.push(Toggler::new( .push(
can_continue, Container::new(Toggler::new(
String::from("Toggle me to continue..."), can_continue,
StepMessage::TogglerChanged, String::from("Toggle me to continue..."),
)) StepMessage::TogglerChanged,
))
.padding([0, 40]),
)
} }
fn image( fn image(