image .asset : 加载资源图片,会使打包时包体过大

 

image.network :网络资源图片,经常换的或者动态的图片

 

image file : 本地图片,比如相册

重用属性:
 fit
scale
color
colorBlendMode
repeat
 
child: Container(
child: new Image.network
('https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1551932081703&di=c8bfcc50c2c71179acb95de745c512c3&imgtype=0&src=http%3A%2F%2Fwerkstette.dk%2Fwp-content%2Fuploads%2F2015%2F09%2FEntertainment_Weekly_Photographer_Marc_Hom_British_Actor_Charlie_Hunnam_as_King_Arthur_Retouch_Werkstette10-770x841.jpg',
 
scale: 2.0,
fit: BoxFit.contain,
color: Colors.greenAccent,
colorBlendMode: BlendMode.modulate,//图片叠加模式
repeat: ImageRepeat.repeatX,


),
 
) ,
 效果: