Flutter Image图片控件使用方法
Image图片加载控件使用方法 //加载网络图Image.network('https://th.bing.com/th/id/R.f7d597605279
Image.network('https://th.bing.com/th/id/R.f7d5976052796c4632f413d6a56402f2?rik=hLrMfFtVWnhcmw&riu=http%3a%2f%2fwww.46ps.com%2fuploadfile%2f2013%2f1219%2f20131219043906438.jpg&ehk=JD%2bfjoKZn1zIRQXIN%2b3U9qzFXsegq1PuDhfhtTR2JZs%3d&risl=&pid=ImgRaw&r=0',height: 200,width: 400,fit: BoxFit.cover,colorBlendMode: BlendMode.darken,color: Colors.deepOrange,semanticLabel: '这是图片的标签',loadingBuilder: (BuildContext context, Widget child,ImageChunkEvent? loadingProgress) {return LinearProgressIndicator(value:loadingProgress?.cumulativeBytesLoaded.toDouble());},
),
Image(image: AssetImage('graphics/image1.png'))
版权声明
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处。如若内容有涉嫌抄袭侵权/违法违规/事实不符,请点击 举报 进行投诉反馈!