Creates a widget that animates its size to match that of its child.
Source
AnimatedSize({
Key key,
Widget child,
this.alignment: FractionalOffset.center,
this.curve: Curves.linear,
@required this.duration,
@required this.vsync,
}) : super(key: key, child: child);