Skip to content

Commit

Permalink
Update pager.md
Browse files Browse the repository at this point in the history
  • Loading branch information
riggaroo authored Oct 11, 2023
1 parent 886372a commit b62a67a
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 b62a67a

Please sign in to comment.