I want to make same animationController forward when the animation status is completed, and setState to update value which is inside animation tween, so the second animationController forward will achieve different animation, is that possible? thank you!
GestureDetector(
onTap: () {
if (firstController.status == AnimationStatus.dismissed) {
firstController.forward();
} else if (firstController.status == AnimationStatus.completed) {
setState(() {
double firstOpacity = 1.0; //new value
double secondOpacity = 0.7;//new value
double thirdOpacity = 0.4;//new value
});
firstController.forward(); // now it does not work
}
},
child: Center(
child: Container(
child: AnimatedBuilder(
animation: firstController,
builder: _buildAnimation,
),
),
),
),