Hide Text as an implementation detail of Tooltip
This commit is contained in:
parent
5e2743361b
commit
2736e4ca35
2 changed files with 25 additions and 11 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue