bubble static method

Widget bubble(
  1. Animation<double> animation,
  2. Widget child
)

Implementation

static Widget bubble(Animation<double> animation, Widget child) {
  return ScaleTransition(
    scale: CurvedAnimation(
        parent: Tween<double>(begin: 0, end: 1).animate(animation),
        curve: Curves.elasticOut),
    alignment: Alignment.center,
    child: child,
  );
}