Use BoxScope.
BoxScope
When BoxScope is used, it defines the scope of the associated composable.
content: @Composable BoxScope.() -> Unit,