Starting with version 0.11.0 with PR #766
Using Polyline to draw path creates shapes (with borderColor), unless you pass Colors.transparent as borderColor.

Going through the source code i found this part
|
Paint filterPaint; |
|
if (polylineOpt.borderColor != null) { |
|
filterPaint = Paint() |
|
..color = polylineOpt.borderColor.withAlpha(255) |
|
..strokeWidth = polylineOpt.strokeWidth |
|
..strokeCap = StrokeCap.round |
|
..strokeJoin = StrokeJoin.round |
|
..blendMode = BlendMode.dstOut; |
|
} |
and
|
if (borderPaint != null) { |
|
if (filterPaint != null) { |
|
filterPaint.style = PaintingStyle.stroke; |
|
_paintLine(canvas, polylineOpt.offsets, borderPaint); |
|
} |
|
borderPaint?.style = PaintingStyle.stroke; |
|
_paintLine(canvas, polylineOpt.offsets, filterPaint); |
|
} |
Swapping filterPaint with borderPaint in the function call _paintLine(...) makes Polyline works normally
Should i make PR for that, or is this intentional?
Starting with version 0.11.0 with PR #766
Using Polyline to draw path creates shapes (with borderColor), unless you pass Colors.transparent as borderColor.
Going through the source code i found this part
flutter_map/lib/src/layer/polyline_layer.dart
Lines 153 to 161 in e8389e1
and
flutter_map/lib/src/layer/polyline_layer.dart
Lines 188 to 195 in e8389e1
Swapping filterPaint with borderPaint in the function call _paintLine(...) makes Polyline works normally
Should i make PR for that, or is this intentional?