The deprecation message of pagerTabIndicatorOffset says to use androidx.compose.foundation.pager.PagerState, despite the version in question already using it.
@OptIn(ExperimentalFoundationApi::class)
@Deprecated(
"""
pagerTabIndicatorOffset for accompanist Pagers are deprecated, please use the version that takes
androidx.compose.foundation.pager.PagerState instead
For more migration information, please visit https://google.github.io/accompanist/pager/#migration
"""
)
public fun Modifier.pagerTabIndicatorOffset(
pagerState: androidx.compose.foundation.pager.PagerState, // this is already using the foundation PagerState
tabPositions: List<TabPosition>,
pageIndexMapping: (Int) -> Int = { it },
): Modifier {
...
}
Describe the bug
The deprecation message of
pagerTabIndicatorOffset
says to useandroidx.compose.foundation.pager.PagerState
, despite the version in question already using it.