Pablo Distéfano
05/30/2024, 3:05 PMSupportingPaneScaffold
. I wanted to include a bottom sheet inside the main pane, so I added a BottomSheetScaffold
inside the mainPane in the SupportingPaneScaffold
but I got an error "The offset was read before being initialized. Did you access the offset in a phase before layout, like effects or composition?"
. Using the latest versions of compose and the adaptive libraries.Pablo Distéfano
05/31/2024, 4:42 PMBottomSheetScaffold
, googling I saw it might happen in other scenarios too.Atul Gupta
05/31/2024, 8:29 PMModifier.wrapWidht
or height
I think in that case these scaffolds are not able to get the dimension of the child composable. Can you try with changing those values just to see if this fixes the issue or not?