How can I use Child Pages in conjunction with <Com...
# decompose
l
How can I use Child Pages in conjunction with Compose pagers? I've tried to use a
LazyRow
but there doesn't seem to be a way to track when the user swipes to a different item (when using
SnapFlingBehavior
), so that's not a viable option. Using a pager seems redundant, as it tracks many of the same attributes as Child Pages and it seems like it would be difficult to sync the state from the component with the Composable. I'd like to have that same kind of flinging feel that
SnapFlingBehavior
and the pager give, as well as detect when the user swipes between components. Maybe I'm approaching this from the wrong angle? Thanks.
a
l
Perfect, that's exactly what I needed. Maybe there could be a link to this somewhere here? I feel like some parts of the documentation are a bit disconnected.
a
👍🏻 1