animated_widgets 0.0.2+1 copy "animated_widgets: ^0.0.2+1" to clipboard
animated_widgets: ^0.0.2+1 copied to clipboard

outdated

Easily add animations on your screen with AnimatedWidgets. Add always your animated widgets in your component's tree, then activate them when you want to activate the animations. For example, add an O [...]

animated_widgets #

Easily add animations on your screen with AnimatedWidgets. Add always your animated widgets in your component's tree, then activate them when you want to activate the animations.

For example : add an OpacityAnimateWidget and a TranslationAnimatedWidget on a button, then activate it to display it !

class _MyScreenState extends State<MyScreen> {

  bool enabled = false;

  @override
  Widget build(BuildContext context) {
    return Stack(
      fit: StackFit.expand,
      children: <Widget>[
        Center(
          child: RaisedButton(
            onPressed: () {
              setState(() {
                //will activate the animation
                enabled = !enabled;
              });
            },
            child: Text("animate"),
          ),
        ),
        Positioned(
          bottom: 20,
          left: 20,
          right: 20,
          child: TranslationAnimatedWidget(
            enabled: enabled,
            values: [Offset(0, 200), Offset(0, 0)],
            child: RaisedButton(
              onPressed: () {},
              child: Text("Dismiss"),
            ),
          ),
        ),
      ],
    );
  }
}

Getting Started with Flutter #

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

170
likes
0
points
6.9k
downloads

Publisher

unverified uploader

Weekly Downloads

Easily add animations on your screen with AnimatedWidgets. Add always your animated widgets in your component's tree, then activate them when you want to activate the animations. For example, add an OpacityAnimateWidget and a TranslationAnimatedWidget on a button, then activate it to display it !

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on animated_widgets

Packages that implement animated_widgets