如何在Flutter中将远程图像添加到Google地图中的图标

时间:2019-01-25 01:56:11

标签: android flutter

嗨,我需要添加远程图像,但是该图标仅接受BitmapDescriptor而不接受Image.network(src),谢谢

controller.addMarker(
       MarkerOptions(
         position: LatLng(
           double.parse(place.lat),
           double.parse(place.lng),
         ),
          icon: BitmapDescriptor.fromAsset(assetName)
         infoWindowText: InfoWindowText('Random Place', '5 Star Rating'),

       ),
     );

0 个答案:

没有答案