PageIndicatorState

interface PageIndicatorState


An interface for connection between Pager and HorizontalPageIndicator.

Summary

Public properties

Int

Total number of pages

Float

The current offset from the start of selectedPage, as a ratio of the page width.

Int

The currently selected page index

Public properties

pageCount

Added in 1.0.0
val pageCountInt

Total number of pages

pageOffset

Added in 1.0.0
val pageOffsetFloat

The current offset from the start of selectedPage, as a ratio of the page width.

Changes when a scroll (drag, swipe or fling) between pages happens in Pager.

selectedPage

Added in 1.0.0
val selectedPageInt

The currently selected page index