Hello, guys. The idea is to implement some kind of...
# compose
r
Hello, guys. The idea is to implement some kind of interactive onboarding flow: to highlight different buttons/fields/etc right on the screen, making the background darker (for example). Any thoughts/examples about that? Can we get constraints of a particular Compose element (x,y,width,height) from the parent?
z
Use Modifier.onGloballyPositioned function you will layout coordinate parameter in it and it has width height and x y in its parent. For width and height use layoutcoord.size and for x y call layoutcoord.positionInParent()
c
r
@Zaki Shaikh, thanks, I'll try it out
@Chris Fillmore damn this looks exact thing I need, thank you!