fit an image in a particular resolution in flutter code example Example: image fit flutter FittedBox( child: Image.asset('foo.png'), fit: BoxFit.fill, )