flutter_map_marker_animation 0.1.1 copy "flutter_map_marker_animation: ^0.1.1" to clipboard
flutter_map_marker_animation: ^0.1.1 copied to clipboard

discontinued

Solution to move a maker smoothly thought Google Maps in Flutter.

example/example.md

Google Maps Markers Animation #

Sometime you need more than place a marker in the maps, you required a smoothly throught Google Maps canvas.

Here the main uses of this package to animate the markers changes of position.

Example #

LatLngInterpolationStream _latLngStream = LatLngInterpolationStream();
StreamSubscription<LatLngDelta> subscription;

@override
void initState() {
	subscription= _latLngStream .getLatLngInterpolation().listen((LatLngDelta delta) {
  LatLng from = delta.from;
  LatLng to = delta.to;
});

super.initState();
}

void updatePinOnMap() {
  var pinPosition = LatLng(currentLocation.latitude, currentLocation.longitude);

  _latLngStream.addLatLng(pinPosition);
}

@override
void dispose() {
  subscription.cancel();
  _latLngStream.cancel();
 super.dispose();
}
2
likes
40
pub points
44%
popularity

Publisher

verified publishergaurisjavier.com

Solution to move a maker smoothly thought Google Maps in Flutter.

Homepage

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, google_maps_flutter

More

Packages that depend on flutter_map_marker_animation