Created
February 11, 2025 18:04
-
-
Save vitoksmile/ca4b4b334ff02f159419047a309e1440 to your computer and use it in GitHub Desktop.
ComposeHints
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fun Modifier.hintAnchor( | |
| state: HintAnchorState, | |
| shape: Shape = RectangleShape, | |
| ): Modifier { | |
| state.shape = shape | |
| //..onGloballyPositioned | |
| } | |
| @Stable | |
| class HintAnchorState internal constructor() { | |
| //...other states here | |
| internal var shape: Shape by mutableStateOf(RectangleShape) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment