Flutter › Implicit vs Explicit Animations
What are explicit animations in Flutter, and why might you genuinely need to use one instead of simply relying entirely on a considerably simpler implicit animation widget?
BeginnerAnswer
Explicit animations require you to manually manage an underlying AnimationController yourself, giving you genuinely full and complete control over precisely when a given animation actually starts, stops, reverses, or repeats, and you would genuinely reach for an explicit animation instead of a considerably simpler implicit one whenever you genuinely need this kind of precise manual control, such as building a genuinely custom animation that needs to properly pause partway through in direct response to a specific user interaction, or when coordinating several genuinely separate related animations together that all genuinely need to remain perfectly synchronized with one another.
final controller = AnimationController(duration: Duration(seconds: 1), vsync: this);
controller.repeat(reverse: true);Real-world example A custom pulsing loading indicator uses an explicit AnimationController set to genuinely repeat with reverse enabled, continuously and smoothly animating back and forth between two different specific states, an effect that would genuinely be considerably more difficult to properly achieve using a considerably simpler implicit animation widget alone.