animate_to
0.1.0, released 3 years ago by codeness.ly
Overlay animation between two widgets using a controller and global keys
WASM-ready
What it does
Provides AnimateTo and AnimateFrom widgets that animate a source widget to a target widget as an overlay. The controller triggers the animation and can transport data to the target.
AI-written summary of version 0.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a simple, declarative overlay animation between two widgets
- You want to animate a widget to a target without custom animation code
- You need to pass data along with the animation
Skip it when
- You need complex physics or custom animation curves not supported by the package
- You require animations that persist across navigation or need state restoration
Strengths
- Easy to use with minimal boilerplate
- Supports data transfer between source and target
- Works on all Flutter platforms
Weaknesses
- Very new, no advanced features yet
- Limited customization beyond basic overlay
- No support for complex animation curves or physics
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Add dependency and import package, create controller, wrap widgets with AnimateTo/AnimateFrom
final _controller = AnimateToController();
AnimateTo(controller: _controller, child: const Text('Target'));
AnimateFrom(key: _controller.tag('tag'), child: const Text('Animatable'));
_controller.animateTag('tag');Alternatives
Packages that do the same job and could replace animate_to.
- flutter_animate
Provides a broader set of animation helpers and effects
70Compare - rive
Offers advanced animation and physics-based motion
89Compare