Roberto Leinardi
05/13/2022, 1:49 PMContent: @Composable () -> Unit
)?
Right now I'm wrapping it in a Box
to be able to set my modifier but I was wondering if there is a better way:
Box(modifier = modifier) {
content()
}
ste
05/13/2022, 2:25 PMModifier
as the only parameter of content
, but then the user would have to "remember" to use itZach Klippenstein (he/him) [MOD]
05/13/2022, 4:45 PMScaffold
bugs). Wrapping in a box is cheap, Box is inline and designed for this sort of thing. One important note however is that you'll want to pass propagateMinConstraints=true
when doing so, otherwise you'll eg break if someone passes you a fillMaxSize