getNetImage static method
获取网络图片 返回ui.Image
Implementation
static Future<ui.Image> getNetImage(String url, {width, height}) async {
ByteData data = await NetworkAssetBundle(Uri.parse(url)).load(url);
ui.Codec codec = await ui.instantiateImageCodec(data.buffer.asUint8List(), targetWidth: width, targetHeight: height);
ui.FrameInfo fi = await codec.getNextFrame();
return fi.image;
}