animated_visibility
0.0.4, released 3 years ago by canopas.com
Animate appearance and disappearance of widgets with pre-built effects.
What it does
Provides an AnimatedVisibility widget that allows developers to easily animate the appearance and disappearance of widgets using pre-built effects such as fading, scaling, and sliding.
AI-written summary of version 0.0.4, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to animate a widget in and out of the UI based on a boolean visibility flag.
- You want simple entry and exit animations without writing complex AnimationController logic.
Skip it when
- You need complex vector animations like Rive or Lottie.
- You are looking for non-visibility related animations like screen page transitions.
Strengths
- Simple declarative usage with pre-built enter and exit effects.
- Combines multiple animations easily (e.g., fadeIn() + scaleIn()).
Weaknesses
- Limited to visibility appearance and disappearance animations.
- Documentation and examples are minimal.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
not documented
AnimatedVisibility(
visible: _isShow,
enter: fadeIn() + scaleIn(),
exit: fadeOut() + slideOutHorizontally(),
child: <content to show/hide>,
);Alternatives
Packages that do the same job and could replace animated_visibility.
- flutter_animate
Provides a comprehensive and powerful animation system for a wide variety of visual effects and chained animations.
70Compare - lottie
Better suited for complex vector-based animations exported from After Effects.
96Compare
Works with
Packages commonly used together with animated_visibility: ones it builds on, ones built on it, and its own family.