Simple Animations is a package for Flutter to boost your animation productivity by simplifying the way to create animations.
Flutter has a strong and flexible foundation of animation capabilities.
But even small animations feel verbose and blow up your code base. Animations are one of the most desired aspects of Flutter, while being difficult to master.
Simple Animation’s goal is to solve this issue, by
There are multiple ways to get started:
This custom animation seems simple but it’s rather complex:
It’s combining a staggered animation sequence with an enduring animation:
With traditional Flutter animation classes this will end in a huge StatefulWidget with multiple AnimationController, Tweens and all that initState and onDispose overhead.
With simple_animation you can do it stateless just by using some fancy ControlledAnimation widgets.
The whole animation just takes about 60 lines of code while maintaining readability. (You can find the source code here. I only counted the lines that are responsible for the animation.)
You find these and other examples in the Example App.
Author: felixblaschke
GitHub: https://github.com/felixblaschke/simple_animations
#flutter #dart