dimsuz
06/10/2021, 12:37 PMmatvei
06/10/2021, 12:58 PMLaunchedEffect
has a key
parameter, when the key changes -- effect will restart, so smth like thinks might work:
LaunchedEffect(bottomSheet.currentValue) {
if (bottomSheet.currentValue == certainValue) {
lazyState.scrollToItem(3)
}
}
dimsuz
06/10/2021, 1:46 PM