Created
February 11, 2025 18:06
-
-
Save vitoksmile/f3702290812a173a4aaf38df65671989 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
| val topAppBarHint = rememberHint { | |
| OutlinedButton(onClick = {}) { Text("Hint for TopAppBar") } | |
| } | |
| val topAppBarActionHintAnchor = rememberHintAnchorState(topAppBarHint) | |
| val actionHint = rememberHint { | |
| Text("Hint for Action") | |
| } | |
| val actionHintAnchor = rememberHintAnchorState(actionHint) | |
| val bottomNavigationHint = rememberHint { | |
| Row( | |
| verticalAlignment = Alignment.CenterVertically, | |
| ) { | |
| Spacer(Modifier.size(32.dp).background(Color.Magenta, CircleShape)) | |
| Spacer(Modifier.size(8.dp)) | |
| Text("Hint for BottomNavigation") | |
| } | |
| } | |
| val bottomNavigationHintAnchor = rememberHintAnchorState(bottomNavigationHint) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment