FadeScaleTransition constructor

const FadeScaleTransition({
  1. Key? key,
  2. required Animation<double> animation,
  3. Widget? child,
})

Creates a widget that implements the Material fade transition.

The fade pattern is used for UI elements that enter or exit from within the screen bounds. Elements that enter use a quick fade in and scale from 80% to 100%. Elements that exit simply fade out. The scale animation is only applied to entering elements to emphasize new content over old.

This widget is not to be confused with Flutter's FadeTransition widget, which animates only the opacity of its child widget.

animation is typically an AnimationController that drives the transition animation. animation cannot be null.

Implementation

const FadeScaleTransition({
  super.key,
  required this.animation,
  this.child,
});