AnimatedFractionallySizedBox
This widget motivated by AnimatedFractionallySizedBox in Flutter.
Animated version of FractionallySizedBox which automatically transitions the child’s size over a given duration whenever the given widthFactor or heightFactor changes, as well as the position whenever the given alignment changes.
For the animation, you can choose a curve as well as a duration and the widget will automatically animate to the new target widthFactor or heightFactor.
See: https://api.flutter.dev/flutter/widgets/AnimatedFractionallySizedBox-class.html
Props
widthFactor
Value: number | undefined
heightFactor
Value: number | undefined
alignment
Value: Alignment (default Alignment.center)
duration
Value: number
curve
Value: Curve(default Curves.linear)
child
Value: Widget | undefined