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

Akram Bensalem

07/15/2022, 6:43 PM
How to make one item in LazyVerticalGrid fill all the parent width ? Scenario: LazyVerticalGrid with diffrent Lists every list should have it own header How I can implement the header to take all the width ?
o

orangy

07/15/2022, 6:46 PM
Copy code
item(it.message.id) {
    Message(it, Modifier.fillParentMaxWidth())
}
In the lazy item scope, there is a special modifier for that UPD: Oh, didn’t notice it’s a grid, not a column
c

curioustechizen

07/15/2022, 6:47 PM
You need to use the span parameter of the item DSL.
👍 1
a

Akram Bensalem

07/15/2022, 7:04 PM
It works Thank you
310 Views