AnimatedAlign constructor

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

Creates a widget that positions its child by an alignment that animates implicitly.

Implementation

const AnimatedAlign({
  super.key,
  required this.alignment,
  this.child,
  this.heightFactor,
  this.widthFactor,
  super.curve,
  required super.duration,
  super.onEnd,
}) : assert(widthFactor == null || widthFactor >= 0.0),
     assert(heightFactor == null || heightFactor >= 0.0);