What is SmoothPageIndicator used for?

When I run my code in vscode, I get the following error like hundreds of times:

Unsupported operation: Infinity or NaN toInt

The relevant error-causing widget was

SmoothPageIndicator

Does anyone have an idea what this is, what it is used for and how to fix it? My app runs fine, but I believe that errors should be resolved, else they bite you later on.

3 replies