animation_wrappers 0.0.3 animation_wrappers: ^0.0.3 copied to clipboard
Animation Wrapper widgets, just wrap the child to be animated with this wrapper widget and that child will be animated.
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),
),
],
),
);
}
}