Widget _buildAnimatedLogo() {
return ControlledAnimation( <-- The method 'ControlledAnimation' isn't defined for the type 'LogoState'
duration: widget.logoAnimationTween.duration,
tween: widget.logoAnimationTween,
builder: (context, animation) {
return Transform.rotate(
angle: animation["rotation"],
child: Padding(
padding: const EdgeInsets.only(
bottom: 10,
),
child: Container(
width: animation["size"],
height: animation["size"],
child: Image.asset(
"assets/images/logo.png",
fit: BoxFit.fitHeight,
),
),
),
);
},
);
}
Я использую simple_animations: ^3.0.1, не уверен, что использую неправильный класс ControlledAnimation