Is it possible to group composable to apply modifier on this group? For example i have scrollable column with 50 elements, but i want to apply padding only for composables from 17 to 33. Is it possible? Note that if i wrap it to another layout then all will be collapsed no matter which layout i would to select
iamthevoid
05/21/2021, 9:20 PM
Understand, I can wrap they in column, but ensure that wrapper column has fixed size, for example with
Modifier.wrapContentHeight()
a
Abhishek Dewan
05/21/2021, 11:14 PM
Are your 50 elements in a list or something? Is there a logic that creates them if so them you could potentially use the index of the creation to conditional add a modifier like so
https://jetc.dev/slack/2020-12-13-conditional-modifiers.html
i
iamthevoid
05/22/2021, 6:27 PM
Thanks, question is not about your proposal, but i’ll take a note )