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

Pablo

03/21/2024, 3:09 PM
Is it possible in compose lazyverticalcolumn to set width of the items as a percentage of lazyverticalcolumn width? For example, set that the items have a width of 0.5 of the width of the lazyverticalcolumn.
n

Nthily

03/21/2024, 3:12 PM
Modifier.fillMaxWidth(0.5f)
p

Pablo

03/21/2024, 3:13 PM
you mean setting that into the items modifier? and what to put on columns variable in the lazyverticalcolumn?
lazyverticalcolumn forzes you to set a value in columns variable, which is the size of the items