Skip to content

Incorrect deprecation of pagerTabIndicatorOffset #1744

@zsperske

Description

@zsperske

Describe the bug

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 {
    ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions