PageIndicator
A row of dots marking the current position within pageCount pages, for carousels, onboarding flows, and any pager. PaginatedContent uses it for its dots footer.
The current page's dot is a wider pill as well as activeColor, so the position does not rely on color alone. The dots are hidden from accessibility services unless you supply pagePositionDescription; the indicator then reads as one node (for example "Page 2 of 5"), announces changes politely, and is at least the minimum touch-target height so assistive technology can land on it.
Parameters
total number of pages. Nothing is drawn when it is below 1.
zero-based index of the current page, clamped into range.
builds the localized announcement from the zero-based page index and the page count. Omit it, or return a blank string, to keep the dots decorative.
color of the current page's dot.
color of the other dots. The default keeps 3:1 contrast on surfaces.
PageIndicator bound to a PagerState. The current dot follows PagerState.currentPage, and the page is read inside this composable, so the caller does not recompose as the pager moves.