Using the animations Flutter package
The animations
package, developed by the Flutter team, allows you to design animations based on the Material Design motion specifications. The package contains pre-made animations, which you can customize with your own content: the result is that with very few lines of code, you will be able to add complex and compelling effects to your apps, including the Container Transform
, which you will implement in this recipe.
Specifically, in this recipe, you will transform a ListTile
into a full screen, as shown in the following screenshot:
Figure 12.8: An animations package example
Getting ready
To follow along with this recipe, you should have completed the code in the previous recipe: Implementing swiping with the Dismissible widget.
How to do it...
In this recipe, you will use the animations Container Transform:
- In your Terminal, add the
animations
dependency to your project by typing the following command:...