I have this use case where I want to create my Com...
# compose
f
I have this use case where I want to create my Composable around
ModalBottomSheetLayout
and I want to show a view depending on whether the
content
is being scrolled or not.
Copy code
public fun BottomSheetLayout(
    modifier: Modifier = Modifier,
    sheetState: ModalBottomSheetState = rememberModalBottomSheetState(ModalBottomSheetValue.Hidden),
    scrollableState: ScrollableState? = null,
    sheetContent: @Composable () -> Unit,
    content: @Composable () -> Unit
) {


    val isScrolling = ??? // how to figure out the sheetContent is scrolling

    ModalBottomSheetLayout(
        modifier = modifier,
        sheetContent = {
            DraggableTopArea(isScrolling)
            sheetContent()
        },
        sheetState = sheetState,
        sheetShape = RoundedCornerShape(
            topStart = BentoTheme.cornerRadiuses.M,
            topEnd = BentoTheme.cornerRadiuses.M
        ),
        sheetElevation = BentoTheme.elevations.lvl4,
        sheetBackgroundColor = BentoTheme.colors.white,
        sheetContentColor = LocalContentColor.current,
        scrimColor = BentoTheme.colors.dark64,
        content = content
    )
}
In this case the usage would be :
Copy code
BottomSheetLayout(
   ...,
  sheetContent = {
    LazyColumn()
  },
  ...
)
And I would like to internally understand if the
LazyColumn
is being scrolled or not.