Closed k849717776 closed 5 days ago
The two properties of the LazyListState firstVisibleItemIndex
and firstVisibleItemScrollOffset
can be read from the calendar state:
firstVisibleItemIndex
=> state.layoutInfo.visibleItemsInfo.firstOrNull()?.index ?: 0
firstVisibleItemScrollOffset
=> state.layoutInfo.visibleItemsInfo.firstOrNull()?.offset ?: 0
thanks
about rememberCalendarState, some time I need scrollProcess, like float, percent。but it only has isScrollInProgress。 it means i want to do some operation when it scorll maybe 30% 50% 70%。that like CalendarState's visibleItemState or internal listState but i can't use it