compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

VerticalScrollbar can not used with LazyVerticalStaggeredGrid

Open stars-one opened this issue 1 year ago • 1 comments

I want to show a scrollbar with a LazyVerticalStaggeredGrid,but there is not support.

My compose-desktop version is 1.5.11.If version 1.6.x or later version support this ?

val state = rememberLazyStaggeredGridState()
Box{
	LazyVerticalStaggeredGrid(columns = StaggeredGridCells.Fixed(4), state = state) {
		
	}
	
	VerticalScrollbar(
		modifier = Modifier.align(Alignment.CenterEnd).fillMaxHeight(),
		//rememberScrollbarAdapter method is not support LazyStaggeredGridState
		adapter = rememberScrollbarAdapter(state)
	)
}

stars-one avatar Apr 19 '24 10:04 stars-one

I also encountered this issue, there doesn't seem to be a way to use a Scrollbar with a LazyStaggeredGrid, which I feel like is a bug or a missing implementation since all scrollable content needs scrollbars in desktop apps.

Syer10 avatar Apr 23 '24 18:04 Syer10

+1 Same issue here (desktop)

starry-shivam avatar Jul 03 '24 07:07 starry-shivam

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

okushnikov avatar Jul 14 '24 14:07 okushnikov