Skip to content

Commit

Permalink
Merge pull request #1719 from google/update-pager-docs
Browse files Browse the repository at this point in the history
Update pager.md
  • Loading branch information
bentrengrove committed Oct 11, 2023
2 parents 886372a + b62a67a commit 1e2bb5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/pager.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ The following is a mapping of the pager classes from accompanist to androidx.com
| `calculateCurrentOffsetForPage` | Use `(pagerState.currentPage - page) + pagerState.currentPageOffsetFraction` |
| `PagerState#currentPageOffset` | `PagerState#currentPageOffsetFraction` |
| `Modifier.pagerTabIndicatorOffset()` | Implement it yourself, or still include and use `accompanist-pager-indicators`, it now supports `androidx.compose.foundation.pager.PagerState` |
| `HorizontalPagerIndicator` | Implement it yourself, or still include and use `accompanist-pager-indicators`, it now supports `androidx.compose.foundation.pager.HorizontalPager` by explicitly providing a `pageCount` param to the `HorizontalPagerIndicator` method |
| `VerticalPagerIndicator` | Implement it yourself, or still include and use `accompanist-pager-indicators`, it now supports `androidx.compose.foundation.pager.HorizontalPager` by explicitly providing a `pageCount` param to the `HorizontalPagerIndicator` method |
| `HorizontalPagerIndicator` | Implement it yourself, or fork `accompanist-pager-indicators` implementation |
| `VerticalPagerIndicator` | Implement it yourself, or fork `accompanist-pager-indicators` implementation |
| `PagerDefaults.flingBehavior()` | `androidx.compose.foundation.pager.PagerDefaults.flingBehavior()` |

The biggest change is that `HorizontalPager` and `VerticalPager`'s number of pages is now called `pageCount` instead of `count`.
Expand Down

0 comments on commit 1e2bb5b

Please sign in to comment.