animation_wrappers 0.0.2 copy "animation_wrappers: ^0.0.2" to clipboard
animation_wrappers: ^0.0.2 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(
            Container(
              height: 200,
              width: 200,
              color: Colors.red,
            ),
          ),
          FadedSlideAnimation(
            Container(
              height: 200,
              width: 200,
              color: Colors.blue,
            ),
            beginOffset: Offset(0.5, 2),
            endOffset: Offset(0.5, 1),
          ),
        ],
      ),
    );
  }
}
42
likes
0
pub points
94%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on animation_wrappers