simple_animations 0.0.9 copy "simple_animations: ^0.0.9" to clipboard
simple_animations: ^0.0.9 copied to clipboard

outdated

Create awesome animations. Simplified. Well documented. With many examples.

Simple Animations #

Build status Pub

Simple Animations is a package for Flutter to boost your animation productivity by simplifying the way to create animations.

Project goal #

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

  • simplifying the way to creates custom animations,
  • softly dipping developers into the animation topic,
  • offering a lot of documentation and examples.

Getting started #

There are multiple ways to get started:

Example #

This custom animation seems simple but it's rather complex:

hello-flutter-example

It's combining a staggered animation sequence with an enduring animation:

  • At the beginning it animates the height of a box. After that it increases the width.
  • While increasing the width a typewriter-like animated underscore appears and persists.
  • Shortly before the width reaches it's final size, it starts to type-write a text.

With traditonal 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.)

1875
likes
0
pub points
99%
popularity

Publisher

verified publisherfelix-blaschke.de

Create awesome animations. Simplified. Well documented. With many examples.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on simple_animations