Comprehensive guide for implementing animations in Flutter. Use when adding motion and visual effects to Flutter apps: implicit animations (AnimatedContainer, AnimatedOpacity, TweenAnimationBuilder), explicit animations (AnimationController, Tween, AnimatedWidget/AnimatedBuilder), hero animations (shared element transitions), staggered animations (sequential/overlapping), and physics-based animations. Includes workflow for choosing the right animation type, implementation patterns, and best prac
The flutter-animations skill provides a comprehensive guide for implementing smooth, visually appealing animations in Flutter applications. It addresses the common challenge of making app interfaces engaging and interactive by offering structured guidance on different animation types. This skill helps developers choose the right animation strategy for their specific use case, whether they need simple property changes, complex transitions, or physics-based motion. By covering both implicit and explicit animation techniques, the skill ensures that developers can achieve responsive, high-performance animations without unnecessary complexity.
The skill's main features include detailed explanations of implicit animations like AnimatedContainer, AnimatedOpacity, and TweenAnimationBuilder, which handle property changes automatically. It also covers explicit animations using AnimationController, Tween, and AnimatedWidget/AnimatedBuilder for fine-grained control over animation lifecycles. Additionally, it explains hero animations for shared element transitions, staggered animations for sequential or overlapping effects, and physics-based animations for natural, spring-like behaviors. The documentation emphasizes best practices for performance and user experience, including curve selection, duration settings, and the use of callbacks.
This skill is particularly useful for Flutter developers who want to enhance the visual appeal of their apps through animations. It is suitable for both beginners who need simple, straightforward animations and experienced developers who require precise control over complex animations and transitions. Typical use cases include animating UI elements during state changes, creating engaging page transitions, implementing ripple or sequential reveal effects, and adding interactive gestures that respond naturally to user input.
This skill is designed for Flutter applications and assumes compatibility with stable Flutter releases. For best results, use it with the latest stable version of Flutter.
Use implicit animations for simple property changes triggered by state updates. Choose explicit animations when you need full control over timing, multiple properties, or custom animation behavior.
Hero animations work for widgets that can be visually transitioned between screens. Ensure the source and destination widgets have matching tags for proper shared element transitions.
Physics-based animations rely on Flutter's built-in physics simulation classes. Basic setup involves using standard widgets with controllers configured for spring or drag behaviors.
Yes, you can combine implicit, explicit, hero, and staggered animations, but manage complexity carefully to maintain performance and smooth visual effects.
Quick Setup:
.claude/skills/Repository
madteacher/mad-agents-skills