Hide Text as an implementation detail of Tooltip

This commit is contained in:
Héctor Ramón Jiménez 2021-02-24 00:59:29 +01:00
parent 5e2743361b
commit 2736e4ca35
2 changed files with 25 additions and 11 deletions

View file

@ -110,11 +110,11 @@ fn tooltip<'a>(
.on_press(Message)
.width(Length::Fill)
.height(Length::Fill),
Text::new("Tooltip"),
"Tooltip",
position,
)
.gap(10)
.padding(20)
.gap(5)
.padding(10)
.style(style::Tooltip)
.into()
}