Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index parameter is not setting initial state of indicator #3

Open
yoohoomedia opened this issue Aug 11, 2022 · 0 comments
Open

Index parameter is not setting initial state of indicator #3

yoohoomedia opened this issue Aug 11, 2022 · 0 comments

Comments

@yoohoomedia
Copy link

The Indicator always starts with the page 0 as the activate index regardless whether one specified an alternate index via constructor parameter.

To fix this one must use the index in the createAnimation call in initState():

Change from:
createAnimation(0.0, 0.0);

to:
createAnimation(widget.index!.toDouble(), widget.index!.toDouble());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant