Package selection guidance compiled from public package information, community data, and project usage.
A Flutter package that provides a visual dots indicator to display the current position within a scrollable widget like PageView. It helps users understand their progress through a sequence of pages or slides with customizable dot appearance and behavior. The indicator supports various themes, sizes, and animations, making it ideal for onboarding screens, image sliders, and guided tours. It is lightweight and compatible across all major platforms.
Use cases
Onboarding screens
Image sliders
Guided tours
Form wizards
Carousel navigation
Slide show indicators
Key features
Customizable dot size and color
Smooth animation between pages
Supports multiple themes
Responsive design
Easy integration with PageView
Platform-agnostic
Suitable for
Mobile app developers
UI/UX designers
Onboarding flows
Interactive tutorials
Multi-page content displays
Considerations
Requires manual synchronization with PageView
Limited customization beyond styling
No built-in swipe gestures
Not suitable for non-scrollable content
May need additional state management
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
dots_indicator
Widget to display dots indicator to show a position (for a PageView for example).
Breaking change in 5.0.0: this package now uses the standalone
material_ui package instead of
package:flutter/material.dart. Your app must also use material_ui (or
keep the deprecated MaterialUiCompatibilityBridge), otherwise tapping a
dot (onTap) throws No Material widget found. Requires Flutter
>=3.44.0 and Dart ^3.12.0. See the CHANGELOG for
details.
Quick start
The typical use case is to pair DotsIndicator with a PageView, syncing
position to the controller's current page:
You can change the default size of dots and also shape.
So you can choose to have a shape for inactive dots and another shape for the active dot for example. By default, the shape of dots are CircleBorder, so to have a rounded rectangle for active one, you need to change activeShape
By default a dot have a margin of 6 pixels on his left and right. It's EdgeInsets.symmetric(horizontal: 6.0).
But if you want you can change it, for example to increase the space between dots or to add top margin.
There is two other property, axis and reversed.
Axis is to display dots indicator horizontally (default) or vertically.
Also, you can set reversed: true to reverse the order of dots. (default: false).
For example, if you want to display the dots indicator vertically, but with the first dots on bottom :
Set axis: Axis.vertical and reversed: true.
Obviously, you can use reversed with Axis.horizontal.
When dotsCount is large (or unknown), showing every dot isn't practical.
Set fadeOutLastDot: true with a fadeOutDistance to only keep a window of
dots fully visible around the current position, fading the rest out — and
animate: true to transition smoothly as position changes.