tlserver / flutter_map_location_marker

A flutter map plugin for displaying device current location.
https://pub.dev/packages/flutter_map_location_marker
BSD 3-Clause "New" or "Revised" License
97 stars 81 forks source link

compat with flutter_map-4.0.0 #65

Closed yvs2014 closed 1 year ago

yvs2014 commented 1 year ago

Hello, trying to run 5.3.0 together with flutter_map-4.0.0 got these incompat messages

../../.pub-cache/hosted/pub.dev/flutter_map_location_marker-5.3.0/lib/src/current_location_layer.dart:460:31: Error: The argument
type 'CustomPoint<num>' can't be assigned to the parameter type 'CustomPoint<double>'.
 - 'CustomPoint' is from 'package:flutter_map/src/core/point.dart'
 ('../../.pub-cache/hosted/pub.dev/flutter_map-4.0.0/lib/src/core/point.dart').
              .scaleBy(widget.followScreenPoint) +
                              ^
../../.pub-cache/hosted/pub.dev/flutter_map_location_marker-5.3.0/lib/src/current_location_layer.dart:504:33: Error: The argument
type 'CustomPoint<num>' can't be assigned to the parameter type 'CustomPoint<double>'.
 - 'CustomPoint' is from 'package:flutter_map/src/core/point.dart'
 ('../../.pub-cache/hosted/pub.dev/flutter_map-4.0.0/lib/src/core/point.dart').
                .scaleBy(widget.followScreenPoint) +
                                ^
../../.pub-cache/hosted/pub.dev/flutter_map_location_marker-5.3.0/lib/src/current_location_layer.dart:596:33: Error: The argument
type 'CustomPoint<num>' can't be assigned to the parameter type 'CustomPoint<double>'.
 - 'CustomPoint' is from 'package:flutter_map/src/core/point.dart'
 ('../../.pub-cache/hosted/pub.dev/flutter_map-4.0.0/lib/src/core/point.dart').
                .scaleBy(widget.followScreenPoint) +
                                ^

not sure if that's enough, but it runs with this quick fix https://github.com/tlserver/flutter_map_location_marker/compare/master...yvs2014:flutter_map_location_marker:master

tlserver commented 1 year ago

Close as FMLM v6.0.0 published.