I need to fill the remaining space in `Column` wit...
# compose
e
I need to fill the remaining space in
Column
with an image but with a limit of its height. My code looks like
Copy code
Column{
item1()
item2()
Image(Modifier.weight(1f))
item3()
..
)
For small screens it works fine, but on bigger screens it takes too much space. So I need to limit the height of the image somehow.
n
Modifier.weight(1f)
😉
e
As I said in the introduction, I'm using
Modifier.weight(1f)
currently, and I don't like how it looks on bigger screens.
h
Wouldn't a follow up
heightIn
modifier to
weight
modifier work?
e
I tried to use
heightIn
modifier with
weight
before, the result was the same
c
Weight has a second argument called fill. Could that work?
👍 2
e
That's what I was looking for, never noticed that second argument
c
Look ma! I'm helping people!
😂 6