Stylianos Gakis
02/17/2023, 1:44 PMRow {
val lazyGridState = rememberLazyGridState()
LazyVerticalGrid(lazyGridState)
LazyVerticalGrid(lazyGridState)
}
In hopes that maybe those two can share the scroll state and scroll together.
What I did end up with instead, is that the second lazy layout works and scrolls correctly. And the first one, when I scroll there, it also moves the scroll position of the second call. Clearly indicating I am not supposed to be doing that 😅
My second option now is to edit the item{}
provided to the grid itself, keeping 1 lazy grid only and simply make each item show twice side by side to emulate what I was going for here.
Now my question is, is there some way my original idea can actually be used? Are the Lazy*State objects simply not built to be able to support being passed to two layouts at the same time?Zoltan Demant
02/17/2023, 2:36 PMStylianos Gakis
02/17/2023, 3:05 PM