AnimatedAlign constructor
- Key? key,
- required AlignmentGeometry alignment,
- Widget? child,
- double? heightFactor,
- double? widthFactor,
- Curve curve = Curves.linear,
- required Duration duration,
- 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);