AnimatedSize constructor
- Key? key,
- Widget? child,
- AlignmentGeometry alignment = Alignment.center,
- Curve curve = Curves.linear,
- required Duration duration,
- Duration? reverseDuration,
- Clip clipBehavior = Clip.hardEdge,
- VoidCallback? onEnd,
Creates a widget that animates its size to match that of its child.
Implementation
const AnimatedSize({
super.key,
this.child,
this.alignment = Alignment.center,
this.curve = Curves.linear,
required this.duration,
this.reverseDuration,
this.clipBehavior = Clip.hardEdge,
this.onEnd,
});