animated_vector
0.2.3, released 8 weeks ago by dvdbnc.dev
Add vector-based animations with a data format inspired by composable widgets.
What it does
Provides support for vector data-based animations using widgets like AnimatedVector and AnimatedSequence. It allows defining animations directly in code or generating them from shapeshifter files.
AI-written summary of version 0.2.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to render and control vector-based animations and icons in Flutter.
- You need declarative, immutable definitions for complex vector animations.
Skip it when
- You need other types of complex animations like full Rive or Lottie interactive scenes not based on vector drawables.
- You require platform-specific native vector animation engines.
Strengths
- Supports all platforms without platform-specific dependencies.
- Includes built-in vector animations and code generation support.
Weaknesses
- Dependent on external format inspiration like Android's AnimatedVectorDrawable.
- File loading via loadFromFile is not supported on platforms lacking dart:io (such as web).
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Add animated_vector to your pubspec.yaml dependencies. Code generation is optionally available via animated_vector_gen.
AnimatedVector(
animation: AnimatedVectors.myAnimation,
controller: _controller,
)Alternatives
Packages that do the same job and could replace animated_vector.
- morphnext
Interruptible spring-driven vector icon morphing for Flutter without per-pair animation assets.
84Compare - flutter_svga
Flutter SVGA animation player with intelligent caching, audio support, and dynamic elements.
76Compare - page_animation_transition
Add customizable page transitions like slide, fade, scale, and rotate for Navigator and go_router.
71Compare - flutter_animate
Add animated effects and builders in Flutter via a unified, customizable chainable API.
70Compare
Works with
Packages commonly used together with animated_vector: ones it builds on, ones built on it, and its own family.
- imageanimated_vector depends on itPure Dart library to load, manipulate, encode, and decode various image formats.
- path_parsinganimated_vector depends on itPure Dart library for parsing SVG path strings and generating Dart path code.
- yaruBuilt on animated_vectorFlutter widgets and theme following the Yaru design language for desktop and web.