Working with animations in Flutter
In Flutter there are two ways to build animations: explicitly and implicitly. Explicit animations are a set of APIs and controls that tell the Flutter framework how to rebuild the widget tree while modifying widget properties to create a seamless animation effect. While this effect is more manual and low-level than implicit animations, it is more powerful.
Implicit animations enable you to defer the management of animations to the Flutter framework. Instead of manually controlling the animation, it can be triggered by updating widget properties. Changes to a widget’s property will trigger the animation from the previous value to the newly specified one.
To understand how implicit animations work, let’s start by building our contacts form with it.
Open up excuses_view.dart
. Replace the _ExcusesViewContentState
class definition with the following code:
class _ExcusesViewContentState extends State<_ExcusesViewContent>...