reanimate-flutter
reanimate-flutter
Move the motion of a reference into Flutter and prove it with the same frame-by-frame comparison reanimate uses. The deliverable is a widget in the user's Flutter project plus evidence (numbers and side-by-side sheets).
This skill relies on the reanimate skill for capture, analysis and comparison. <reanimate> below is that skill's directory: the sibling folder ../reanimate when both are installed from this repository. <skill> is the directory this SKILL.md lives in.
Workflow
0. Scope and reference: done by reanimate
Follow reanimate's steps 0 to 3 (<reanimate>/SKILL.md): scope, setup.sh, capture the reference, read every sheet, write spec.md. Use the same fidelity levels. For Flutter, add one more line to the top of spec.md:
- Destination: the Flutter project, the file the widget goes in, and which screen uses it.
Capture the reference with --clock virtual. The Flutter clone can only be captured on the virtual clock (its frames are drawn on a canvas, and the virtual clock is what makes them exact), and both sides must be captured the same way. A loop or idle animation should also use --trigger none --pre-js <skill>/templates/restart.js so both sides start their timeline at the same moment.
1. Generate the motion widget
When inspect.json › animations holds the motion (CSS animations, transitions, WAAPI), generate the widget instead of writing it by hand: