Creating animations in Flutter is really fun and easy, but there is one bad practice that might make those animations laggy: setState. Bad Practice: AnimationController and setState When using AnimationController in a StatefulWidget, you might be tempted to do the following: void initState() {
_controller = AnimationController(
vsync: this,
duration: Duration(seconds: 1),
)
..addListener(() …