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
Alex Styl
08/11/2024, 5:51 PM
what is stopping you from using
Modifier.widthIn(min=X)
?
m
Marc
08/11/2024, 5:51 PM
It's not working.. do I have to put it before or after the weight Modifier?
a
Alex Styl
08/11/2024, 5:58 PM
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