TapReaction.scale constructor

const TapReaction.scale({
  1. Key? key,
  2. required Widget child,
  3. Duration duration = const Duration(milliseconds: 120),
  4. Curve curve = Curves.easeInCubic,
  5. double endScale = 0.95,
})

Animates its child using a scale animation.

More specifically it uses the Transform.scale() widget with the scale comes from an animation controller.

Implementation

const TapReaction.scale({
  Key? key,
  required this.child,
  this.duration = const Duration(milliseconds: 120),
  this.curve = Curves.easeInCubic,
  double endScale = 0.95,
})  : animationValue = endScale,
      animationType = AnimationType.scale,
      super(key: key);