scaleWithOpacity static method

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

Implementation

static Widget scaleWithOpacity(Widget child, Animation<double> animation) {
  return FadeTransition(
    key: ValueKey<Key?>(child.key),
    opacity: animation,
    child: ScaleTransition(
      scale: animation,
      child: child,
    ),
  );
}