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
Zaki Shaikh
10/27/2022, 11:07 AM
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()