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());
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());