what’s the replacement for Modifier.weight in late...
# compose
m
what’s the replacement for Modifier.weight in latest version ?
s
It's still
Modifier.weight
m
hm. don’t compile. I have this layout
Card( modifier = Modifier .fillMaxWidth(), elevation = 0.dp, ) { Row(verticalAlignment = Alignment.CenterVertically) { CoilImage(...) Column(modifier = Modifier.padding(16.dp)) {.} Icon(...) } }
i want the column to stretch to fill the remaining space
like weight = 1
oh you right, weird. only if i force type it it works
nvm then. thanks
s
Yeah that's a bug in AS