animations

Implements Flutter animations using implicit widgets, AnimationController, and Material 3 motion tokens.

162|23|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/VeryGoodOpenSource/vgv-ai-flutter-plugin --skill animations-verygoodopensource
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: animations
Source: https://github.com/VeryGoodOpenSource/vgv-ai-flutter-plugin/tree/main/skills/animations
Command: npx skills add https://github.com/VeryGoodOpenSource/vgv-ai-flutter-plugin --skill animations-verygoodopensource

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Flutter developers often over-engineer simple animations with AnimationController boilerplate, hardcode arbitrary durations and curves, or animate layout-triggering properties that cause jank. This Skill provides decision trees, Material 3 motion tokens, and production patterns so animations are built with the simplest correct approach. ## Core Features & Use Cases - Implicit vs Explicit Decision Tree: Routes every animation request to the right tool — AnimatedFoo widgets, TweenAnimationBuilder, or AnimationController — and pushes back when a controller is requested for a simple target-value animation. - Material 3 Motion Tokens: Enforces Flutter's Durations and Easing constants instead of hardcoded Duration and Curves values, with an AppMotion class pattern for centralized motion constants. - Page Transitions & Hero: Covers CustomTransitionPage integration with GoRouter's GoRouteData.buildPage, reusable AppPageTransitions helpers, and Hero shared-element transition rules. - Performance & Anti-Patterns: Flags animating width/height/padding (forces layout passes), missing controller disposal, and rebuilding static children every frame, with Transform-based fixes. - Use Case: When asked to "add a fade and slide when the card appears", the Skill produces two nested implicit widgets (AnimatedOpacity + AnimatedSlide) with M3 tokens instead of a StatefulWidget with controller boilerplate. ## Quick Start Ask the AI to add a staggered fade-and-slide entry animation to a Flutter widget using Material 3 motion tokens.

Frequently Asked Questions about animations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose between implicit and explicit animations in Flutter?

Use implicit animations (AnimatedFoo widgets or TweenAnimationBuilder) when the widget rebuilds with a new target value. Use an explicit AnimationController only when you need playback control such as play, pause, reverse, repeat, or status listeners.

How do I add a custom page transition with GoRouter in Flutter?

Return a CustomTransitionPage from the buildPage override of your GoRouteData subclass, providing a transitionsBuilder with FadeTransition or SlideTransition. Use Durations.medium4 and Easing.emphasizedDecelerate for Material 3 compliant timing.

Why is animating width or height bad for Flutter performance?

Animating width, height, or padding forces a full layout pass on every frame, which is expensive regardless of tree depth. Use Transform.scale for size changes and Transform.translate for position changes, since those run on the compositing layer and skip layout.

When should I use SingleTickerProviderStateMixin vs TickerProviderStateMixin?

Use SingleTickerProviderStateMixin when the widget owns exactly one AnimationController. Use TickerProviderStateMixin only when the widget owns multiple controllers, since it supports multiple tickers at a slightly higher cost.

How do I create staggered animations in Flutter?

Use a single AnimationController with multiple CurvedAnimation objects, each wrapped in an Interval defining when that property animates within the controller's duration. Overlapping intervals create the staggered effect for fade, slide, and scale sequences.

Does this approach support third-party animation libraries like Lottie or Rive?

No, this Skill covers only Flutter's built-in animation framework and Material 3 motion guidelines. Lottie, Rive, and other third-party animation libraries are explicitly out of scope.