animation_wrappers 0.0.4
animation_wrappers: ^0.0.4 copied to clipboard

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),
          ),
        ],
      ),
    );
  }
}
1
likes
120
pub points
84%
popularity

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

Documentation

API reference

Uploader

jagritjkh@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on animation_wrappers