Replies: 1 comment 2 replies
-
Yeah, I have a similar use case. Where I trigger a new set of snap points with a state change, but the Bottomsheet does not snap to the new one because it is not updated yet.
The sheet does not expand to the new set of points. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I use a bottom sheet to show two different views, let's call them A and B. The snap points for my bottom sheet change based on this view. When switching between A and B I want to go back to the snap point I had when I last used that state.
However, when I move between A and B I can't call
snapToIndex
, because the index might be out of range, my bottom sheet hasn't picked up the updated snap points yet.Calling
snaptoPosition
sort of works but there's I can't expand my sheet unless I first make it smaller.This is caused by this logic in bottom-sheet, this might be a bug I need to spend some time understanding the logic.
Is there a way I can tell when the snap points have been updated, so that I can use
snapToIndex
?Beta Was this translation helpful? Give feedback.
All reactions