KamilH
12/05/2022, 9:35 AMSnapFlingBehavior
to snap only to specific items (positions)? I want to snap only to stickyHeaders
, not any item on the list.Daniele Segato
12/05/2022, 9:41 AM// If you'd like to customize either the snap behavior or the layout provider
val snappingLayout = remember(state) { SnapLayoutInfoProvider(state) }
val flingBehavior = rememberSnapFlingBehavior(snappingLayout)
I believe you can implement a SnapLayoutInfoProvider
that only provides snap points for the headersKamilH
12/05/2022, 9:43 AMDaniele Segato
12/05/2022, 9:44 AM