Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
If a bottom sheet is in a half expanded state and recreated into a screen where half expanded isn't possible (because it isn't tall enough) it crashes with the same error.
This is also an issue in pre 1.4.0-alpha04, but the error message is "The initial value must have an associated anchor".
This is easily reproducible by having a bottom sheet with a height that in landscape has half expanded, but doesn't in portrait. When rotating with the sheet open it always crashes. This can be mitigated by disallowing the bottom sheet to be half expanded by creating the bottom sheet state with rememberModalBottomSheetState(initialValue = ModalBottomSheetValue.Hidden, skipHalfExpanded = true)
Description
No description yet.