detect when an animation has ended in Flutter Tutorials