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
1 changed files with 8 additions and 5 deletions

View File

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