Hello everyone, I have Row which contains a lazyco...
# compose
e
Hello everyone, I have Row which contains a lazycolumn and a custom layout. How can I make them scroll together simultaneously because every one has its own scroll state!
j
Please don't double post your question with just a few hours apart
e
Copy code
val verticalScrollState = rememberScrollState()           Row(modifier = Modifier.weight(1f)) {
    ScheduleSidebar(
        hourHeight = 64.dp,
        modifier = Modifier
         //   .verticalScroll(verticalScrollState)
        ,
        onDayChanged = { viewModel.onEvent(ScheduleEvent.ScrollDateChanged(it)) }
    )

    Schedule(
        bookings = viewModel.state.value.bookingsList,
        modifier = Modifier.verticalScroll(verticalScrollState),
        onEmptyViewClicked = { days, hour, selectedDate ->
            showSheet = true
            viewModel.onEvent(
                ScheduleEvent.OnEmptyViewClicked(
                    days = days,
                    startTime = hour,
                    selectedDate = selectedDate
                )
            )

        }
    )
}