https://kotlinlang.org logo
#compose
Title
# compose
m

myanmarking

03/05/2021, 3:24 PM
what’s the replacement for Modifier.weight in latest version ?
s

Se7eN

03/05/2021, 3:26 PM
It's still
Modifier.weight
m

myanmarking

03/05/2021, 3:27 PM
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

Se7eN

03/05/2021, 3:30 PM
Yeah that's a bug in AS