SimpleAnimatedSize constructor
const
SimpleAnimatedSize({
- Key? key,
- required Widget child,
- AlignmentGeometry alignment = Alignment.center,
- Curve curve = Curves.linear,
- required Duration duration,
- required Duration reverseDuration,
- required TickerProvider vsync,
Creates a widget that animates its size to match that of its child.
The curve and duration arguments must not be null.
Implementation
const SimpleAnimatedSize({
Key? key,
required Widget child,
this.alignment = Alignment.center,
this.curve = Curves.linear,
required this.duration,
required this.reverseDuration,
required this.vsync,
}) : super(key: key, child: child);