隐式动画
With Flutter’s animation library,you can add motion and create visual effectsfor the widgets in your UI.One part of the library is an assortment of widgetsthat manage animations for you.These widgets are collectively referred to as implicit animations,or implicitly animated widgets, deriving their name from theImplicitlyAnimatedWidget class that they implement.The following set of resources provide many ways to learnabout implicit animations in Flutter.
Documentation
- Implicit animations codelab
- Jump right into the code!This codelab uses interactive examplesand step-by-step instructions to teach you how to use implicit animations.
- AnimatedContainer sample
- A step-by-step recipe from the Flutter cookbookfor using the AnimatedContainer implicitly animated widget.
- ImplicitlyAnimatedWidget documentation
- All implicit animations extend the
ImplicitlyAnimatedWidget
class.
Flutter in Focus videos
Flutter in Focus videos feature 5-10 minute tutorialswith real code that cover techniquesthat every Flutter dev needs to know from top to bottom.The following videos cover topicsthat are relevant to implicit animations.
The Boring Show
Watch to Boring Show to follow Google Engineers build apps from scratch in Flutter.The following episode covers using implicit animations in a news aggregator app.
Widget of the Week videos
A weekly series of short animated videos each showing the important features of one particular widget.In about 60 seconds, you’ll see real code for each widget with a demo about how it works.The following Widget of the Week videos cover implicitly animated widgets: