Does <this commit> fix the crash caused by `The of...
# compose
k
Does this commit fix the crash caused by
The offset was read before being initialized. Did you access the offset in a phase before layout, like effects or composition?
in
BottomSheetScaffold
? Will this be included in the next alpha?
2
j
How are you using
BottomSheetScaffold
? Do you use
NavHost
or
AnimatedContent
and
Scaffold
?
k
Does
LookaheadScope
and
Scaffold
count as well?
So
NavHost
and
LookaheadScope
it is. Only when I remove both it does not crash
j
Yes, it fixes that issue:)
👍 1
Apologies, this was planned to be included in the last release but looks like it will only be in the next one
k
All good, thanks for the fix 🫶
🙌 1
b
Is this still a thing in 1.5.10? Im still seeing it
Copy code
BottomSheetScaffold(
    scaffoldState = rememberBottomSheetScaffoldState(
        bottomSheetState = rememberStandardBottomSheetState(SheetValue.Hidden)
    ),
    sheetShape = MaterialTheme.shapes.large.copy(
        bottomStart = ZeroCornerSize,
        bottomEnd = ZeroCornerSize
    ),
    sheetTonalElevation = 0.dp,
    sheetShadowElevation = 4.dp,
    sheetContainerColor = MaterialTheme.colorScheme.surface,
    sheetContentColor = MaterialTheme.colorScheme.onSurface,
    sheetContent = {
        [..]
    },
    content = {
        [..]
    },
)