Animations and Transistions
There are two ways to animate widgets in Flutter: animating them within a given screen and animating them between different screens.
Animating Within a Screen: the AnimatedContainer and Similar Widgets
The AnimatedContainer is one of the simplest widgets to start animating your Flutter app: it’s a regular Container but it animates to when a property is changed, giving a nicer transition to a different state. For example, changing its height or width will make the widget shrink or expand gradually, and similar effects can be had by changing the border or color properties of the widget. The duration of the animation can optionally be changed using the duration argument and its curve (whether or not and how much the ...
Get Programming Flutter now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.