How do you make a text clickable in jetpack compose ? I would also like to toggle it to non clickable after selecting once

You can add the clickable modifier to your Text or use ClickableText instead of Text. Here is an example of how to do it with ClickableText: var enabled by remember { mutableStateOf(true)} ClickableText( text = AnnotatedString(text) , onClick = { if (enabled) { enabled = false text = “Disabled” } })

How to pass object in navigation in jetpack compose?

As per the Navigation documentation: Caution: Passing complex data structures over arguments is considered an anti-pattern. Each destination should be responsible for loading UI data based on the minimum necessary information, such as item IDs. This simplifies process recreation and avoids potential data inconsistencies. So, if it is possible avoid passing complex data. More official … Read more

tech