In my `BottomSheetScaffold` I can actually see the...
# compose
r
In my
BottomSheetScaffold
I can actually see the BottomSheet flying in from the top of the page to the bottom when the app starts. This happens when I set the
initialValue
to
BottomSheetValue.Expanded
, is this actually intended behavior, or am I doing something horribly wrong? Screencap in thread....
w
this looks like a bottom sheet that is starting in the expanded state, then collapsing to me. What happens if you start it in the collapsed state? Does that do what you want?
r
I tried starting in Collapsed state and only expanding during
LaunchedEffect
but I got the same flying behaviour.
j
See https://issuetracker.google.com/issues/178492940 Tl;dr: No fix for this for now
w
Oh, I had trouble with this a few days ago. The dialog does it right; it starts it to null (with a nullable variable) then sets it after the first render pass. If you’re willing to duplicate the scaffold, you can edit it yourself pretty simply
j
@Will Shelor Did you do this? If yes, I'd love to take a look for inspiration 😄
w
sure, I’ll send it as a DM