flutter_map_marker_animation 0.0.1+1

  • Readme
  • Changelog
  • Installing
  • 68

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();
}

[0.0.1] - Interpolation between two position points, including rotation of the marker #

[0.0.1+1] - Interpolation between two position points, including rotation of the marker #

  • Added examples and betetr description

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  flutter_map_marker_animation: ^0.0.1+1

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:flutter_map_marker_animation/flutter_map_marker_animation.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
47
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
75
Overall:
Weighted score of the above. [more]
68
Learn more about scoring.

We analyzed this package on Jul 7, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.13
  • Flutter: 1.17.5

Analysis suggestions

Package does not support Flutter platform linux

Because of import path [package:flutter_map_marker_animation/flutter_map_marker_animation.dart] that declares support for platforms: android, ios

Package does not support Flutter platform macos

Because of import path [package:flutter_map_marker_animation/flutter_map_marker_animation.dart] that declares support for platforms: android, ios

Package does not support Flutter platform web

Because of import path [package:flutter_map_marker_animation/flutter_map_marker_animation.dart] that declares support for platforms: android, ios

Package does not support Flutter platform windows

Because of import path [package:flutter_map_marker_animation/flutter_map_marker_animation.dart] that declares support for platforms: android, ios

Package not compatible with SDK dart

because of import path [flutter_map_marker_animation] that is in a package requiring null.

Health suggestions

Fix lib/example/lib/flutter_map_marker_animation_example.dart. (-1.49 points)

Analysis of lib/example/lib/flutter_map_marker_animation_example.dart reported 3 hints:

line 20 col 14: The value of the local variable 'from' isn't used.

line 21 col 14: The value of the local variable 'to' isn't used.

line 22 col 14: The value of the local variable 'angle' isn't used.

Format lib/helpers/math_util.dart.

Run flutter format to format lib/helpers/math_util.dart.

Format lib/helpers/spherical_util.dart.

Run flutter format to format lib/helpers/spherical_util.dart.

Format lib/lat_lng_interpolation.dart.

Run flutter format to format lib/lat_lng_interpolation.dart.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and flutter_map_marker_animation.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

Homepage URL is insecure. (-5 points)

Update the homepage field and use a secure (https) URL.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
google_maps_flutter ^0.5.21 0.5.28+1
Transitive dependencies
collection 1.14.12 1.14.13
flutter_plugin_android_lifecycle 1.0.8
google_maps_flutter_platform_interface 1.0.2
meta 1.1.8 1.2.1
plugin_platform_interface 1.0.2
sky_engine 0.0.99
stream_transform 1.2.0
typed_data 1.1.6 1.2.0
vector_math 2.0.8
Dev dependencies
flutter_test