How to load images with image.file

后端 未结 11 2161
星月不相逢
星月不相逢 2021-01-01 10:41

I can\'t seem to simply load an image from the hard drive to the screen. Image.network seems straightforward. But I can\'t figure out how to use Image or Image.file. Imag

11条回答
  •  不知归路
    2021-01-01 11:04

    child: Image.file(
     File('DirectoryLocation/imageName.jpg'),
     height: 45.0,
     width: 45.0,
    ),
    

提交回复
热议问题