AnimatedFractionallySizedBoxModifier constructor
const
AnimatedFractionallySizedBoxModifier({
- Key? key,
- Widget? child,
- Key? modifierKey,
- AlignmentGeometry alignment = Alignment.center,
- 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.
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,
});