How can I make a widget rotate to a particular degree using RoatateTransition: My code looks like this:
AnimationController _animationController;
@override
void initState() {
super.initState();
_animationController = AnimationController(vsync: this, duration: Duration(seconds: 1));
_animationController.repeat();
}
RotationTransition(
turns: this.animationController,
child: Icon(Icons.arrow_drop_down_sharp, color: Colors.white, size: 25,)
)
but my issue is that the code continuously rotates, would love to make it rotate to a particular degree and reverse back.