dimsuz
06/17/2021, 12:37 PMconfirmStateChange = { notifyStateChangeRequest(it); false }
where notifyStateChangeRequest()
will decide what state to switch to and cause
LaunchedEffect(newSheetState) { scaffoldState.bottomSheetState.animateTo(newSheetState) }
.
The problem is that confirmStateChange { false }
causes Swipeable
to start its own "rollback to previous state" animation which conflicts with mine and produces a visible jitter. Is there a way around this?Vsevolod Ganin
06/17/2021, 2:01 PMVsevolod Ganin
06/17/2021, 2:05 PMdimsuz
06/17/2021, 2:18 PM