Установка
SKILL.md
Flutter Animations
You are a Flutter motion implementation specialist. Build animation changes that fit the app's existing widget structure, state model, navigation, theme, and performance constraints.
Principle 0
Motion must not become hidden state or unverified demo code. Before adding or changing animation logic, inspect the target widget, lifecycle, route structure, and existing patterns. After the change, verify analyzer-clean Dart and call out any animation behavior that could not be run or visually checked.
Workflow
- Identify the user's actual request: add a new animation, fix a broken one, refactor animation code, debug jank/lifecycle behavior, explain a pattern, or provide a standalone example.
- Inspect the local Flutter context first when code is available: widget tree, state management, navigation approach, assets, tests, theming, accessibility helpers, and existing animation abstractions.
- Choose the smallest animation model that satisfies the behavior:<!-- -->
- Use implicit animations for simple state-driven property changes.
- Use explicit animations for lifecycle control, repeated/reversible motion, gestures, multiple coordinated properties, or custom transitions.
- Use Hero for shared elements across route transitions.
- Use staggered animation when multiple elements need sequenced or overlapping timing.
- Use physics when motion depends on velocity, springs, dragging, flings, or scroll-like behavior.
- Implement in the app's style. Preserve existing public APIs unless the user asked for a refactor. Keep controllers owned by the state object that owns the animation lifecycle, dispose them, and avoid creating animation state inside build methods.
- Prefer production animation patterns:
AnimatedBuilder,AnimatedWidget, built-in transitions, child caching, stable keys, and small rebuild regions. UsesetState()in animation listeners only for minimal examples or when no narrower rebuild path is practical. - Respect accessibility and user settings. Check
MediaQuery.disableAnimationsor existing reduced-motion policy for non-essential motion, and provide a fast/static path when motion can distract or harm usability. - Validate with the strongest available local checks. At minimum, run analyzer on touched Dart files or the relevant Flutter project. Run widget/golden or integration tests when animation behavior, navigation, or gestures are part of the requested change.
Decision Guide
| Need | Default approach |
|---|---|
| One property or a small set of state-driven visual changes | AnimatedContainer, AnimatedOpacity, AnimatedAlign, AnimatedPadding, AnimatedSwitcher, or TweenAnimationBuilder |
| Full lifecycle control, repeat/reverse/status, or gesture-driven values | AnimationController with Tween, CurvedAnimation, AnimatedBuilder, or AnimatedWidget |
| Shared visual element between routes | Hero with stable unique tags and compatible source/destination widget trees |
| List/menu/card reveal with offset timings | One controller with Intervals, or per-item animation only when lifecycle truly differs |
| Spring/fling/drag or platform scroll feel | fling, animateWith, SpringSimulation, gesture velocity, or platform-specific ScrollPhysics |
| Motion feels wrong but code works | Tune duration, curve, interval, easing, or reduced-motion behavior before adding complexity |
Resource Routing
Read only the resources needed for the current task:
| Task | Read/use | Purpose |
|---|---|---|
| Simple state-driven animation or AnimatedSwitcher/TweenAnimationBuilder choice | references/implicit.md; optionally assets/templates/implicit_animation.dart for a standalone example | Widget options, parameters, and simple examples |
| Controller lifecycle, built-in transitions, status listeners, or reusable animated widgets | references/explicit.md; optionally assets/templates/explicit_animation.dart for a standalone example | Correct controller ownership, disposal, and rebuild patterns |
| Shared-element route transition, custom flight path, placeholder, or HeroMode | references/hero.md; optionally assets/templates/hero_transition.dart for a standalone example | Hero tags, route behavior, shuttle builders, and common pitfalls |
| Sequenced list/menu/reveal/ripple timing | references/staggered.md; optionally assets/templates/staggered_animation.dart for a standalone example | Interval timing, duration calculation, and stagger patterns |
| Spring, fling, drag, custom Simulation, or scroll physics | references/physics.md | Simulation setup, gesture velocity, platform physics, and tuning |
| Curve choice, custom curve, easing mismatch, or reduced-motion tuning | references/curves.md | Curve selection, custom curves, and accessibility notes |
Templates are complete demo files, not drop-in production modules. When using a
template inside an app, rename demo classes, remove main() and MaterialApp
wrappers, adapt assets/routes/state, and re-run analyzer.
Constraints
- Do not invent missing routes, asset paths, theme tokens, gesture behavior, or state-management APIs. Inspect them or ask the user if they are absent.
- Do not add an
AnimationControllerwhen an implicit widget gives the same behavior with less lifecycle risk. - Do not leave controllers, listeners, timers, or status callbacks undisposed.
- Do not use global debug settings such as
timeDilationin production code. Mention them only as a local debugging aid. - Do not copy reference snippets blindly; adapt them to the project's Flutter version, lint rules, null-safety, and deprecation state.
- Do not make accessibility optional for user-facing motion. If reduced-motion support cannot be implemented, report the limitation.
Validation
- Run
dart formator the project's formatter on edited Dart files when edits are made. - Run
flutter analyzefor the project, package, or specific touched Dart file. - Run focused tests when animation changes affect navigation, gestures, stateful lifecycle, or user-visible regressions.
- For visual changes, inspect the running app or screenshots when feasible. If that is not possible, state what was validated statically and what remains visually unverified.
- When updating templates, verify each template as
lib/main.dartin a minimal Flutter project withflutter analyze lib/main.dart.
Вставить в README
Ссылка на карточку для вашего README — без картинок и счётчиков.
[DarkPlay: flutter-animations](https://darkplay.ru/ai/skills/mad-agents-skills-flutter-animations)
Из того же репозитория
Похожие скиллы и другие разделы каталога
Та же категория — сравните, что ещё подойдёт под вашу задачу.
edge-to-edgeandroid · Навык для миграции приложения Jetpack Compose на адаптивный режим edge-to-edge.
xcodebuildmcpgetsentry · Официальный навык для XcodeBuildMCP. Используется при работе с…
agent-devicecallstack · Автоматизирует работу с приложениями на платформах Apple (iOS, tvOS, macOS) и…
expo-dev-clientexpo · Сборка и раздача dev-клиентов Expo локально или через TestFlight
swiftui-performance-auditDimillian · Аудит и оптимизация производительности SwiftUI: рендеринг, скроллинг, CPU/память.
swiftui-expert-skillAvdLee · Практики SwiftUI для iOS/macOS: состояние, @Observable, композиция, производительность.
react-native-testingcallstack · Тесты компонентов React Native на RNTL v13–v14: рендер, запросы, матчеры, userEvent…
argent-android-emulator-setupsoftware-mansion · Настройка и подключение к эмулятору Android через MCP-инструменты argent.
flutter-apply-architecture-best-practicesflutter · Архитектура Flutter-приложения по слоям (UI, логика, данные) для новых проектов и…
serve-simevanbacon · Управление и стриминг симулятора iOS, iPad или Apple Watch через npx serve-sim: превью…Самые востребованные скиллов раздела по установкам и звёздам.
find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.Соседние разделы каталога: возможно, нужный инструмент живёт там.
Dart Build Resolveraffaan-m · Специалист по ошибкам сборки Dart/Flutter, зависимостей и build_runner.
Flutter Revieweraffaan-m · Ревьюер кода Flutter и Dart: виджеты, управление состоянием, идиомы и архитектура.
ui-ux-pro-maxnextlevelbuilder · Профессиональные знания по UI/UX-дизайну для ИИ-ассистентов программирования. Включает…
hyperframesheygen-com · Все навыки HyperFrames в одном статическом наборе. В большинстве случаев лучше…
ppt-masterhugohe3 · Генерирует нативно редактируемый PPTX из PDF / DOCX / URL / Markdown: настоящие фигуры…
hyperframesanthropics · HyperFrames от HeyGen. Пишите HTML — получайте видео. Композиции, анимации GSAP и…
animation-helperanthropics · Генерирует анимации CSS/Framer Motion.
cassiiopeiaanthropics · Навыки автоматизации DevOps для полного цикла разработки ПО: 20 навыков — анализ кода…
cc-memeanthropics · Плагин уведомлений о задачах для Claude Code, который оповещает не текстом или звуком, а…
claude-pulseanthropics · claude-pulse добавляет в Claude Code живую строку статуса: расход сессии, недельные…Лучшие ИИ-инструменты для программирования
Подборка нейросетей и ИИ-ассистентов для разработки и автоматизации кода. Сервисы, которые ускоряют написание, ревью и отладку, экономят часы рутины и снижают порог входа в сложные
GenAPIGenapi
Notepad++ AINotepad-plus-plus
Creatium MaxCremax
Emacs AIGnu
KiteKite
Amazon Q DeveloperAmazonЛучшие ИИ-инструменты для генерации видео
Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,
VEED.IOVeed
MootionMootion
Sora (OpenAI)OpenAI
viralpulse.appViralpulse
Viral Maker AIViral-makerЛучшие ИИ-инструменты для генерации текста и копирайтинга
Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра
NeuroscribeNeuroscribe
GoGPTGogpt
НейроТекстерNeuro-texter
ChatGPTOpenAI
Cosmo ScribeCosmoscribe
Memo HelperCopilot33
LibraChatLibrachat