flutter image.file take full size of parent code example Example: image fit flutter FittedBox( child: Image.asset('foo.png'), fit: BoxFit.fill, )