),
),
),
),
);
}
}
class StaggerAnimation extends StatelessWidget {
final Animation controller;
Animation height;
Animation padding;
Animation color;
StaggerAnimation({ Key key, this.controller }): super(key: key){
height = Tween(
begin:.0 ,
end: 300.0,
).animate(
CurvedAnimation(
parent: controller,
curve: Interval(
0.0, 0.6,
curve: Curves.ease,
),
),
);
color = ColorTween(
begin:Colors.green ,
end:Colors.red,
).animate(
CurvedAnimation(
parent: controller,
curve: Interval(
0.0, 0.6,
curve: Curves.ease,
),
),
);
padding = Tween(
begin:EdgeInsets.only(left: 0.0),
end:EdgeInsets.only(left: 300),
).animate(
CurvedAnimation(
par