build method

  1. @override
Widget build(
  1. Animation<double> animation
)
override

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),
    ),
  );
}