Creates a widget that scales and positions its child within itself according to fit.
Source
FittedBox({ Key key, this.fit: ImageFit.contain, this.alignment: FractionalOffset.center, Widget child }) : super(key: key, child: child) { assert(fit != null); assert(alignment != null && alignment.dx != null && alignment.dy != null); }