is there any built in behavior for LazyRow to be a...
# compose
m
is there any built in behavior for LazyRow to be able to snap card by card, just like google play ?
z
Does it absolutely need to be built in?
m
no
c
https://github.com/chrisbanes/snapper is what i would use even though its deprecated as of a few weeks ago becauser the functionality is not provided by compose BUT the functionality doesn't seem as good as snapper FWIW
¯\_(ツ)_/¯
m
that snaps by screen width, not by item
c
I could've recalled it was by item? sorry for the ping @cb or @levima?
c
Nope, it snaps by item. As does the SnapFlingBehavior in Compose Foundation
m
Ya true. The term i was looking for is not snap ;p check google play card animation. They interrupt the scroll animation for each item. Snap is like a 'rest' animation right @cb
Fling is the term. Any idea how to achieve this then?
c
Snapper allows customization of the fling distance: https://chrisbanes.github.io/snapper/usage/#customization-of-the-target-index
I’m not sure if the Foundation implementation does