animate_do 1.6.1 animate_do: ^1.6.1 copied to clipboard
Beautiful animations inspired on Animate.css, every animation is a widget that contains default but customizable values that look attractive.
import 'package:flutter/material.dart';
import 'package:animate_do/animate_do.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Material App',
home: Scaffold(
body: Center(
child: BounceInDown(
child: Square()
)
),
),
);
}
}
class Square extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
width: 50,
height: 50,
decoration: BoxDecoration(
color: Colors.blueAccent,
),
);
}
}