AnimatedFractionallySizedBoxModifier constructor

const AnimatedFractionallySizedBoxModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. AlignmentGeometry alignment = Alignment.center,
  5. double? heightFactor,
  6. double? widthFactor,
  7. Curve curve = Curves.linear,
  8. required Duration duration,
  9. VoidCallback? onEnd,
})

Creates a widget that sizes its child to a fraction of the total available space that animates implicitly, and positions its child by an alignment that animates implicitly.

The curve and duration argument must not be null If non-null, the widthFactor and heightFactor arguments must be non-negative.

Implementation

const AnimatedFractionallySizedBoxModifier({
  super.key,
  super.child,
  super.modifierKey,
  this.alignment = Alignment.center,
  this.heightFactor,
  this.widthFactor,
  super.curve,
  required super.duration,
  super.onEnd,
});