Pratyush
09/12/2024, 7:23 AMStylianos Gakis
09/12/2024, 9:48 AMPratyush
09/12/2024, 9:51 AMStylianos Gakis
09/12/2024, 12:52 PMModifier.onPlaced {}
on your composable. In there you get a LayoutCoordinates
and you can try doing
positionInRoot()
positionInWindow()
positionOnScreen()
On it to get some coordinates.
Play around with it, perhaps one of them will be what you are looking for.
You can then store that value in a local mutableState, which you read inside the onClick