google / accompanist

A collection of extension libraries for Jetpack Compose
https://google.github.io/accompanist
Apache License 2.0
7.43k stars 598 forks source link

[Pager] The PagerState.kt->lazyListState should be public #1454

Closed qazxcs113 closed 1 year ago

qazxcs113 commented 1 year ago

Description I see the code inside. PagerState.kt . The member lazyListState should be public .

Expected behavior I wish pager can exist more page in a screen. May be I need the items width and height to calculate.

It like use adapter.setOffscreenPageLimit() and setPageTransformer. I have the view object.

Additional context Like this: 20221221152810

andkulikov commented 1 year ago

We are not going to add analogue of setOffscreenPageLimit in Accompanist Pager, however we just released a new Pager in compose-foundation and it has such functionality