Skip to content

Instantly share code, notes, and snippets.

@eevajonnapanula
Created July 24, 2023 10:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eevajonnapanula/fd5cac71921e680c0aea19a2f67800e9 to your computer and use it in GitHub Desktop.
Save eevajonnapanula/fd5cac71921e680c0aea19a2f67800e9 to your computer and use it in GitHub Desktop.
var position by remember { mutableStateOf(Pair(0f, 0f)) }
...
.onGloballyPositioned {
position =
Pair(
it.positionInParent().x,
it.positionInParent().x + it.size.width
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment