Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/google-maps/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter RangeError(索引):无效值:不在包含范围0..1273:1274中_Flutter_Google Maps - Fatal编程技术网

Flutter RangeError(索引):无效值:不在包含范围0..1273:1274中

Flutter RangeError(索引):无效值:不在包含范围0..1273:1274中,flutter,google-maps,Flutter,Google Maps,我收到了这个错误。 RangeError(索引):无效值:不在包含范围0..1273:1274中 这是我的密码 //DECODING DRIVER POLYLINES START void driverDPo() { loadDriverPoly().then((QuerySnapshot snapshot) => { snapshot.documents.forEach((f) { String polyDecodedString

我收到了这个错误。 RangeError(索引):无效值:不在包含范围0..1273:1274中

这是我的密码

 //DECODING DRIVER POLYLINES START
  void driverDPo() {
    loadDriverPoly().then((QuerySnapshot snapshot) => {
          snapshot.documents.forEach((f) {
            String polyDecodedStringDriver;
            polyDecodedStringDriver = f.data['decodedRouteString,'].toString();
            driverUid = f.data['uid'];
            print("polyDecodedStringDriver : " + polyDecodedStringDriver);
            print("Driver Uid : " + f.data['uid']); //asigning
            try {           
              result2 = polylinePointsDr
                  .decodePolyline(f.data['decodedRouteString,']);

              result2.forEach((PointLatLng point) {
                // driverPolylineCordinates
                //     .add(LatLng(point.latitude, point.longitude));
                print("DRIVER LATLONG : " +
                    LatLng(point.latitude, point.longitude).toString());
                // driverLatLng =
                //     LatLng(point.latitude, point.longitude); //asigning
              });
            } catch (e) {
              print(e);
            }
          })
        });
  }
  //DECODING DRIVER POLYLINES END

我找到了答案。我是从谷歌地图上用多段线存储的。我想把它和现场进行比较。那就是例外的时候。我在网上没有找到任何解决办法。我检查了谷歌地图,当我看到我之前存储的根被关闭时。我想这就是例外的原因。

我找到了答案。我是从谷歌地图上用多段线存储的。我想把它和现场进行比较。那就是例外的时候。我在网上没有找到任何解决办法。我检查了谷歌地图,当我看到我之前存储的根被关闭时。我想这就是例外的原因