SizeTransitionModifier constructor

const SizeTransitionModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. Axis axis = Axis.vertical,
  5. required Animation<double> sizeFactor,
  6. double axisAlignment = 0.0,
})

Creates a size transition.

The axis, sizeFactor, and axisAlignment arguments must not be null. The axis argument defaults to Axis.vertical. The axisAlignment defaults to 0.0, which centers the child along the main axis during the transition.

Implementation

const SizeTransitionModifier({
  super.key,
  super.child,
  super.modifierKey,
  this.axis = Axis.vertical,
  required this.sizeFactor,
  this.axisAlignment = 0.0,
});