animation_wrappers 1.0.0 copy "animation_wrappers: ^1.0.0" to clipboard
animation_wrappers: ^1.0.0 copied to clipboard

outdated

Animation Wrapper widgets, just wrap the child to be animated with this wrapper widget and that child will be animated.

example/lib/main.dart

import 'package:animation_wrappers/animation_wrappers.dart';
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: AnimationWrappers(),
    );
  }
}

class AnimationWrappers extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Animation Wrappers'),
      ),
      body: Column(
        children: [
          FadedScaleAnimation(
            child: Container(
              height: 200,
              width: 200,
              color: Colors.red,
            ),
          ),
          FadedSlideAnimation(
            child: Container(
              height: 200,
              width: 200,
              color: Colors.blue,
            ),
            beginOffset: Offset(0.5, 2),
            endOffset: Offset(0.5, 1),
          ),
        ],
      ),
    );
  }
}
42
likes
80
points
3.45k
downloads

Publisher

verified publisherjagritjkh.com

Weekly Downloads

Animation Wrapper widgets, just wrap the child to be animated with this wrapper widget and that child will be animated.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on animation_wrappers