jello static method

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

Jello 动画

Implementation

static AnimatedBuilder jello(Animation<double> animation, Widget child) {
  return AnimatedBuilder(
    animation: animation,
    builder: (context, child) {
      final skew = sin(animation.value * pi * 4) * 0.02;
      return Transform(
        transform: Matrix4.skewX(skew),
        child: child,
      );
    },
    child: child,
  );
}