Skip to content
pubscout

flutter_map_animations

0.11.0, released 5 weeks ago by rouxguillau.me

Animation utilities for markers and controls of the flutter_map package.

WASM-ready
$ flutter pub add flutter_map_animations
Source repository

What it does

Provides animated controllers and marker layers for flutter_map, allowing smooth zoom, rotation, and center transitions as well as animated markers.

AI-written summary of version 0.11.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are using flutter_map and need smooth animated transitions for map controllers and markers.
  • You want to animate map movements like rotation, zooming, and centering on points.

Skip it when

  • You are using Google Maps instead of flutter_map.
  • You do not need any animations or custom animated markers on your maps.

Strengths

  • Simplifies animated movements for flutter_map.
  • Provides AnimatedMarkerLayer for animating individual markers easily.

Weaknesses

  • Strictly tied to the flutter_map ecosystem.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2

requires flutter_map and latlong2 dependencies as part of your flutter_map setup

class _MyWidgetState extends State<MyWidget> with TickerProviderStateMixin {
    late final _animatedMapController = AnimatedMapController(vsync: this);

    @override
    Widget build(BuildContext context) {
        return FlutterMap(
            mapController: _animatedMapController.mapController,
            children: [
                TileLayer(
                    urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
                    userAgentPackageName: 'com.example.app',
                ),
            ],
        );
    }
}

Alternatives

Packages that do the same job and could replace flutter_map_animations.

Works with

Packages commonly used together with flutter_map_animations: ones it builds on, ones built on it, and its own family.