flutter-animations
构建 Flutter 动画
Flutter 动效可能很难正确选择和实现。此技能可指导动画选择、代码模式、性能和可访问性。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "flutter-animations" from https://skillstore.io/skills/madteacher-flutter-animations.md and its manifest at https://skillstore.io/api/skills/madteacher-flutter-animations/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“flutter-animations”。 我需要一张卡片在被选中时平滑展开。
预期结果:
建议:使用 AnimatedContainer,设置较短时长、ease 曲线,以及由状态驱动的宽度、高度和颜色变化。
正在使用“flutter-animations”。 我需要一个徽标先变大、淡入,然后在完成后反向播放。
预期结果:
建议:使用 AnimationController 搭配 Tween 值、状态监听器和 AnimatedBuilder,以减少重建工作。
正在使用“flutter-animations”。 我需要照片网格中的一个项目打开到详情页。
预期结果:
建议:使用匹配的 Hero 标签,在两个屏幕中保持相似的 widget 树,并使用 Material 包装器提升路由转场质感。
安全审计
安全All static findings were adjudicated as false positives. The sensitive detections are Flutter super.key syntax, the blocker detections are Dart lifecycle or documentation text, and the external command detections are Markdown backticks around Dart examples. No prompt injection, credential exposure, command execution, or exfiltration intent was found.
风险因素
⚙️ 外部命令 (82)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/madteacher-flutter-animations/audits/4?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/madteacher-flutter-animations?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/madteacher-flutter-animations?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/madteacher-flutter-animations/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/madteacher-flutter-animations.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
madteacher. (2026). flutter-animations security audit report (audit version 4) [Author version 1.0]. Skillstore. https://skillstore.io/skills/madteacher-flutter-animations/audits/4BibTeX 引用
@techreport{madteacher-madteacher-flutter-animations-2026,
author = {madteacher},
title = {flutter-animations security audit report (audit version 4)},
institution = {Skillstore},
year = {2026},
number = {4},
url = {https://skillstore.io/skills/madteacher-flutter-animations/audits/4},
note = {Author version 1.0}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "flutter-animations security audit report (audit version 4)"
version: "1.0"
type: report
authors:
- name: "madteacher"
date-released: "2026-07-06"
url: "https://skillstore.io/skills/madteacher-flutter-animations/audits/4"
identifiers:
- type: other
value: "skillstore:madteacher-flutter-animations:audit:4"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 高你能构建什么
添加简单状态动效
使用隐式动画组件来为尺寸、颜色、透明度、内边距或对齐方式变化添加动画。
构建可控动画
使用 AnimationController 模式实现协调、可反转或状态感知的动效。
设计屏幕转场
规划 Hero、交错和基于物理的动效,用于打造精致的应用导航和内容展示。
试试这些提示
Help me choose the best Flutter animation type for this UI change: [describe the widget and trigger].
Create a Flutter implicit animation plan for [property] when [state] changes. Include widget choice and timing guidance.
Convert this animation idea into an explicit AnimationController design: [describe motion, duration, curves, and states].
Plan a production Flutter motion system with hero transitions, staggered reveals, physics behavior, performance checks, and accessibility fallbacks.
最佳实践
- 对于简单状态变化,优先从隐式动画开始。
- 在 widget 释放时释放 AnimationController 实例。
- 尊重减少动态效果的偏好设置,并避免过度动效。
避免
- 当 AnimatedBuilder 足够时,不要在每个动画 tick 中使用 setState。
- 不要在未测量性能的情况下创建嵌套动画树。
- 不要在标签不一致或 widget 树无关的情况下使用 Hero 动画。
常见问题
我应该先使用哪种 Flutter 动画类型?
此技能包含代码示例吗?
它能帮助处理 AnimationController 生命周期吗?
它涵盖 Hero 动画吗?
它能提升动画性能吗?
它会运行 Flutter 测试吗?
开发者详情
作者
madteacher许可证
MIT
作者版本
v1.0
Skillstore 修订
r1
版本提示
作者声明的版本不符合 SemVer 规范。
引用
b8ca75d2c0a7e7102978993058777d82b8ab2610
维护新鲜度
2026/7/18
使用量
14 次下载 · 195 次浏览