scaleDown static method

Animation<double> scaleDown(
  1. AnimationController controller, {
  2. double from = 1.0,
  3. double to = 0.95,
})

Scale down animation

Implementation

static Animation<double> scaleDown(
  AnimationController controller, {
  double from = 1.0,
  double to = 0.95,
}) {
  return Tween<double>(begin: from, end: to).animate(
    CurvedAnimation(parent: controller, curve: snappy),
  );
}