Animations are an important feature that you can add to your apps to make them more attractive. They make it possible to add important functionality in a way that is pleasant for your users. For example, you could use animations to notify the user that an action has been completed, or you can use them to get user input. In any case, animations are often required to give your apps a polished look that can help make them successful. The good news is that Flutter has very good support for animations.
If you are like me, you probably love games, and usually, animations are what games are made of. So, in this chapter, we'll build a simplified single-player version of the ancient Pong game. We'll build a ball that will bounce through the screen, and we'll use a bat to avoid it touching the bottom part of the screen.
Building this...