fadeAndScale method

Widget fadeAndScale({
  1. Duration duration = const Duration(milliseconds: 300),
  2. Curve curve = Curves.easeOut,
  3. double beginOpacity = 0,
  4. double beginScale = 0.95,
})

Fades and scales the widget.

Implementation

Widget fadeAndScale({
  Duration duration = const Duration(milliseconds: 300),
  Curve curve = Curves.easeOut,
  double beginOpacity = 0,
  double beginScale = 0.95,
}) => fade(
  duration: duration,
  curve: curve,
  beginOpacity: beginOpacity,
).scale(duration: duration, curve: curve, beginScale: beginScale);