AnimatedSize constructor

const AnimatedSize({Key key, Widget child, AlignmentGeometry alignment:, Curve curve: Curves.linear, @required Duration duration, 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.


const AnimatedSize({
  Key key,
  Widget child,
  this.alignment =,
  this.curve = Curves.linear,
  @required this.duration,
  @required this.vsync,
}) : super(key: key, child: child);