Cyril Find
11/13/2020, 11:18 AMPavel Marchenko
11/13/2020, 3:15 PMval scrollState = remember(key) {
ScrollState(
flingConfig = flingConfig,
initial = 0f,
animationClock = animationClock,
interactionState = null,
)
}
ScrollableColumn(
scrollState = scrollState,
) {...}
when you detect tap on the icon - update the [key] and trigger recomposition.
I'm not sure this is the best approach, so if someone has different approach in mind please let me know.Cyril Find
11/13/2020, 3:57 PM