build method
Return animated widget with provided animation.
Implementation
@override
Widget build(Animation<double> animation) {
return FadeTransition(
opacity: animation,
child: Transform(
alignment: Alignment.bottomCenter,
transform: Matrix4.identity()
..setEntry(3, 2, 0.001)
..translate(0.0, (cos(animation.value) * (height / 6)), 0),
child: Center(child: bottomChild),
),
);
}