Solution: Beating Heart
Explore how to implement a beating heart animation in Flutter. Learn to use TickerProviderStateMixin and AnimationController to create a repeating size animation of an icon, control its lifecycle, and optimize resource usage by properly disposing of the animation controller.
Solutions
Great job on completing all the steps in the previous challenge! Feel free to compare your code solutions with the solutions below:
Beating heart solution
Challenge 1: Add TickerProviderStateMixin
First, on lines 15-16 of the contact_list_screen.dart file, we add TickerProviderStateMixin to the ContactListScreen widget. This adds a ...