This might be a useful convention: when creating a Composable that is only expected to function correctly in a certain scope such as BoxScope, we can make the Composable an extension function:
fun BoxScope.MyComposable()
even if the scope isn’t used, the constraint may be helpful
i
Ivan Cagle (IvanEOD)
10/07/2024, 8:04 PM
I think thats a pretty standard pattern with compose