Skip to content

Commit

Permalink
subtract is removed in 6.1.0 flutter map, replaced wit operator -
Browse files Browse the repository at this point in the history
  • Loading branch information
ReinisSprogis committed Feb 25, 2024
1 parent be5d3d4 commit e36c518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/animated_marker_layer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class AnimatedMarkerLayer extends StatelessWidget {
)) continue;

// Apply map camera to marker position
final pos = pxPoint.subtract(mapCamera.pixelOrigin);
final pos = pxPoint - mapCamera.pixelOrigin.toDoublePoint();

yield Positioned(
key: m.key,
Expand Down

0 comments on commit e36c518

Please sign in to comment.