Issue
I'm following this guide for an animation: https://mightytechno.com/flutter-glow-pulse-animation/
When I go to use this
it won't let me pass it. I can't compile and flutter clean does nothing. What object can I pass to get rid of this error?
void initState() {
getSharedPrefs();
_animationController = AnimationController(vsync: this, duration: Duration(seconds: 2));
_animationController.repeat(reverse: true);
_animation = Tween(begin: 2.0,end: 15.0).animate(_animationController)..addListener((){
setState(() {
});
});
Solution
Extending SingleTickerProviderStateMixin
fixed the issue:
class Social4state extends State<UserProfilePage> with SingleTickerProviderStateMixin{
Answered By - Petro
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.