is there any way to change contentPadding values of a LazyColumn but skipping recomposition (maybe just layout) ?
k
Kirill Grouchnikov
02/03/2023, 3:46 PM
Depending on how big such a change is, you might end up needing to show more elements in the row. Not sure how you would avoid recomposition.
m
myanmarking
02/03/2023, 3:47 PM
sorry, its a column !
k
Kirill Grouchnikov
02/03/2023, 3:47 PM
Same thing
m
myanmarking
02/03/2023, 3:47 PM
yes, but that won’t be an issue. Is there any, idk. Maybe .layout modifier ?
c
Chris Sinco [G]
02/03/2023, 10:09 PM
You may be able to mimic contentPadding changes with the offset Modifier, which can skip recomposition
a
Ariful Jannat Arif
02/06/2023, 1:10 PM
Compose is made in a way that it may recompose in every frame if needed. So I think solving the problem for which you are afraid of recomposing is better idea.