I suspect Android doesn’t need a tooltip, but in desktop it is very important. I couldn’t find one for desktop, how would I implement it? I think it should be a modifier, something like
Modifier.tooltip("Text")
for simple cases and then
Modifier.tooltip { … }
with Slot API for custom tooltips.
👍 4
a
Adam Powell
12/26/2020, 4:33 PM
Sounds good from an API perspective. It would end up being implemented using
Modifier.composed {}
and the
Popup
API, and might call for some tweaking of Popup itself to get the anchoring right as a modifier
Adam Powell
12/26/2020, 4:33 PM
Android does use tooltips too, both on ChromeOS and as a standard long press for toolbar buttons
☝️ 3
o
orangy
12/26/2020, 4:36 PM
Do you mean you will implement it in main compose library? It’s not urgent to me in any way, so I can wait for some time 🙂
d
Dominaezzz
12/26/2020, 4:45 PM
I'd like it soon though. 🙂
➕ 4
a
Adam Powell
12/26/2020, 5:16 PM
Probably, no ETA off the top of my head though. A turnkey tooltip API may or may not happen for 1.0, but I'd prefer if a variant on
Popup
that makes writing it straightforward was present for 1.0 at least.