This might be a useful convention: when creating a...
# codingconventions
d
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
I think thats a pretty standard pattern with compose
👍 1
c
If you want to push this pattern to the next step, take a look at https://opensavvy.gitlab.io/ui/decouple/api-docs/polymorphism/index.html
👀 1