Tuldokator ยท tool-doh-kay-tor
A lightweight Flutter widget dot indicators for PageView tracking.
Showcase ๐
Getting started ๐
Properties
- Tuldokator
- itemCount: The total number of dots to be displayed.
- controller: A controller for manipulating the state of the Tuldokator.
Usage
Tuldokator(
itemCount: 5,
controller: _tuldokatorController,
)
-
TuldokatorController
- A controller class that can be used to programmatically control the Tuldokator.
-
Constructors
- TuldokatorController
- initialValue: The initial selected dot index.
- TuldokatorController
-
Methods
- toIndex(int index): Sets the currently selected dot index to the provided index.
Example
final _tuldokatorController = TuldokatorController(initialValue: 0);
// Change the selected dot index programmatically
_tuldokatorController.toIndex(3);