tuldokator 1.0.8
tuldokator: ^1.0.8 copied to clipboard
A lightweight Flutter widget for customizable dot indicators, commonly used to show the current page in a PageView.
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);