AnimatedFractionallySizedBox constructor
- Key? key,
- AlignmentGeometry alignment = Alignment.center,
- Widget? child,
- double? heightFactor,
- double? widthFactor,
- Curve curve = Curves.linear,
- required Duration duration,
- 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.
If non-null, the widthFactor
and heightFactor
arguments must be
non-negative.
Implementation
const AnimatedFractionallySizedBox({
super.key,
this.alignment = Alignment.center,
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);