PageIndicator
fun PageIndicator(modifier: Modifier = Modifier, currentPage: Int, pageCount: Int, textColor: Color, onForward: () -> Unit, onBack: () -> Unit, backgroundColor: Color, actionText: String)
A page indicator that shows the current page and the total number of pages. The indicator also has buttons to navigate to the next and previous pages.
Parameters
currentPage
The current page index
pageCount
The total number of pages
textColor
The color of the text and icons
onForward
The action to perform when the forward button is clicked
onBack
The action to perform when the back button is clicked
backgroundColor
The background color of the indicator