) it crashes immediately unless I add it to the root of the View hierarchy with this error:
Copy code
java.lang.IllegalArgumentException: The initial value must have an associated anchor.
Is this expected behaviour?
c
Chris Fillmore
11/09/2022, 12:31 AM
Does your bottom sheet have any content? I seem to recall this exception if your bottom sheet was empty, but I saw it in a pure Compose app
l
luke_c
11/09/2022, 8:30 AM
Yeah I saw that as well when searching the issue, it's not empty and also has the Box with min size 1dp workaround. This crash also happens when the screen loads and before the sheet is even displayed