Dictionary 颤振谷歌地图:在两个位置之间绘制路线线
我正试图编写简单的代码,在谷歌地图上的两个位置之间画一条路线,为此我使用了flift_polyline_points包,我编写了如下简单代码:Dictionary 颤振谷歌地图:在两个位置之间绘制路线线,dictionary,flutter,routes,polyline,google-polyline,Dictionary,Flutter,Routes,Polyline,Google Polyline,我正试图编写简单的代码,在谷歌地图上的两个位置之间画一条路线,为此我使用了flift_polyline_points包,我编写了如下简单代码: List results=wait polylinePoints.getRouteBeween坐标(api_key,38.00000000,40.22222,41.1111111,45.22222) 但每次运行代码时都会出现一个异常,即: 发生异常。 _异常(异常:RangeError(索引):无效值:有效值范围为空:0) ***有人能告诉我怎样才能纠正
List results=wait polylinePoints.getRouteBeween坐标(api_key,38.00000000,40.22222,41.1111111,45.22222)代码>
但每次运行代码时都会出现一个异常,即:
发生异常。
_异常(异常:RangeError(索引):无效值:有效值范围为空:0)
***有人能告诉我怎样才能纠正这个错误吗