Hello. I'm having trouble hiding contents in the b...
# compose-android
g
Hello. I'm having trouble hiding contents in the bottom sheet as it keeps showing a gap at the bottom sheet. Can someone help me with this?
Copy code
ModalBottomSheetLayout(
        ...
        sheetContent = {
            ...
            AnimatedVisibility(visible = visible, exit = shrinkOut()) {
                Button(
                    onClick = {},
                    text = "Text",
                    modifier = Modifier.height(300.dp),
                    ...
                )
            }
            ...
        },
        modifier = modifier,
    ) {}
o
I am not sure, but maybe it is fixed in 1.5.0-alpha01 https://developer.android.com/jetpack/androidx/releases/compose-material#1.5.0-alpha01
Fixed an issue where
ModalBottomSheetLayout
would crash in an edge case on orientation change. Layout animations (e.g.
Modifier.animateContentSize
) in/on the sheet content now work smoothly.
g
thanks 😄 but I'm already using 1.5.0 and it doesn't help
oh, actually, it does fix the issue 😄 I updated the wrong dep 🤦‍♂️ thank you