如何使用 RoatateTransition 使小部件旋转到特定程度:我的代码如下所示:
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,)
)
但我的问题是代码不断旋转,希望让它旋转到特定的角度并反转回来。