james
01/08/2024, 2:34 AMBottomSheetScaffold
where the sheetContent
can be limited by its initial size?
if its children are in-composition and fully sized when the sheetContent
first comes into composition then there is no problem and all works as expected, but if the size is a smaller height (zero in my case) to start with, then once the children are resized to be larger, the sheetContent
appears blank.
code in đź§µjames
01/08/2024, 2:35 AMBottomSheetScaffold(
sheetContent = {
SomeSheetContent(
sheetContentViewModel = sheetContentViewModel,
)
},
)
if I add a surrounding box with fillMaxSize, the problem goes away:
BottomSheetScaffold(
sheetContent = {
Box(modifier = Modifier.fillMaxSize()) {
SomeSheetContent(
sheetContentViewModel = sheetContentViewModel,
)
}
},
)
if the children of SomeSheetContent
are all there and full-size when BottomSheetScaffold
comes into composition, I don’t see the issue, but if they are not, then I do see the issue, reproducible every single time.
is this expected behaviour or should I be filing a bug?