flutter how to fit top part of image in container code example Example: image fit flutter FittedBox( child: Image.asset('foo.png'), fit: BoxFit.fill, )