Overview
AnimatedVisibility is a Flutter package that enables smooth animations for showing and hiding widgets. It provides a simple, declarative way to animate visibility changes with customizable enter and exit transitions. The package supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux. Built with performance and ease of use in mind, it integrates seamlessly into existing Flutter apps. Developers can control animation duration, curve, and behavior through intuitive properties. Ideal for creating dynamic UIs where visual feedback enhances user experience.
Use cases
- Animating dropdown menus
- Showing/hiding loading indicators
- Creating collapsible sections
- Implementing slide-in modals
- Managing onboarding screens
Key features
- Smooth enter/exit animations
- Customizable transition curves
- Support for all Flutter platforms
- Simple API with minimal boilerplate
- Configurable duration and delay
Suitable for
- UI components requiring visual feedback
- Dynamic layouts with hidden content
- Onboarding or tutorial flows
- Interactive forms with conditional elements
- Apps needing polished micro-interactions
Considerations
- May impact performance with many instances
- Requires careful tuning of animation durations
- Limited to visibility-based transitions only
- Not suitable for complex layout changes
- Best used with lightweight widgets