This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
flutter test # Run all tests
flutter test test/some_test.dart # Run a single test file
flutter analyze # Lintanimate_do is a Flutter animation package (v4.2.0) inspired by Animate.css. Zero external dependencies — Flutter SDK only.
All animation widgets follow the same structure:
StatefulWidgetsubclass with the public API- State class mixes in
AnimateDoState(lib/src/types/animate_do_mixins.dart) +SingleTickerProviderStateMixin - The mixin handles:
AnimationControllerlifecycle, delay, infinite loops,manualTrigger,onFinishcallbacks
Every animation widget exposes these common properties:
child,duration(default 500ms),delay,curveanimate(bool to trigger/reverse),infinite,manualTrigger,controllercallback,onFinish
Every animation supports two equivalent styles:
- Class syntax:
FadeIn(child: widget) - Extension/sugar syntax:
widget.fadeIn()
Extension methods live alongside their widget counterparts and simply wrap them.
lib/src/
types/
animate_do_mixins.dart # AnimateDoState mixin — core logic
animate_do_types.dart # AnimateDoDirection enum
animations/
attention_seekers/ # Loopable animations (Bounce, Flash, Pulse, Wobble, etc.)
fade_ins/ fade_outs/
back_ins/ back_outs/
bounces/ elastics/ slides/ flips/
zoom_ins/ zoom_outs/
custom_animation/ # MoveTo, MoveToArc (Transform-based positioning)
Each category directory has an index.dart barrel export. The top-level lib/animate_do.dart re-exports everything.
- Create file in the appropriate category subdirectory
- Define
StatefulWidget+ state mixing inAnimateDoState - Add Widget extension method for sugar syntax
- Export from the category's
index.dart