使用方法
- 复制安装命令,在自己的智能体环境安装前先检查源码包。
- 从原始文档核对所需工具、凭据和支持的宿主。
- 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/thiennc-tesoglobal/flutter-skills --skill flutter-animation开始前需了解
- 安装不包含模型订阅、API 额度或访问文件的权限。
- 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。
Flutter Animation
Use motion to explain state change, hierarchy, or continuity. Keep it interruptible and accessible.
Own timing, interpolation, sequencing, stable identity, and interruption. Route blur, glass, refraction, shader uniforms, and optical layer composition to flutter-visual-effects; when both apply, animation state drives the effect rather than duplicating controller ownership inside the renderer.
Choose the mechanism
- Use implicit animation for a small number of property changes controlled by state.
- Use an
AnimationControllerwhen timing, sequencing, repetition, interruption, or multiple values require explicit ownership. - Use
Heroonly when the same conceptual element persists across routes and tags remain unique. - Use custom painters or lower-level animation only when widget composition cannot express the result efficiently.
- Preserve animation controllers in the state lifecycle that owns them and dispose them correctly.
Do not animate layout-heavy properties across large subtrees without profiling. Avoid stacking unrelated implicit animations that make timing hard to reason about.
Reduced motion
Read platform accessibility preferences through the project-compatible Flutter API. Replace nonessential motion with an immediate or low-motion transition while preserving meaning and task completion.
Verification
Test initial, in-progress, completed, reversed, interrupted, and reduced-motion states where relevant. Check for ticker leaks and profile complex motion in profile mode on a representative device.
When motion patterns or reduced motion is in scope, follow the motion patterns and reduced motion reference.


