Is it possible to provide a min with (in dp) to a ...
# compose-desktop
m
Is it possible to provide a min with (in dp) to a composable which layout relies on weight. Because with just a small weight the composable could get too small on specific screen sizes.
a
what is stopping you from using
Modifier.widthIn(min=X)
?
m
It's not working.. do I have to put it before or after the weight Modifier?
a
you are right. it doesn't work. just gave it a go. It seems like a bug. as a workaround i would try to either a) create a container with the weight and has it contain the min width u want b) see if
fillmaxWidth()
+ widthIn() works with an argument