Skip to content
pubscout

map

2.0.3, released 3 months ago by pwa.ir

Geographical Map widget for Flutter supporting different projections and tile providers.

WASM-ready
$ flutter pub add map
Source repository

What it does

Provides a lightweight and powerful geographical map widget written entirely in Dart with no native platform code. It supports various tile providers like Google Maps, Mapbox, and OpenStreetMap, along with caching and multiple projections.

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

Use it when

  • You need a vendor-free map widget that works with custom tiles or multiple providers
  • You want a pure Dart map implementation without native platform dependencies across all platforms

Skip it when

  • You require fully managed native vector maps out of the box without configuring tile sources
  • You need built-in advanced geolocation tracking services

Strengths

  • Written entirely in Dart with no native platform code
  • Vendor-free, supports any tile provider
  • Supports Android, iOS, Web, Windows, macOS, and Linux

Weaknesses

  • Vector tile support is still under development in separate packages
  • Requires manual setup for tile sources and interaction logic

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

No native platform configuration is required since it is written entirely in Dart.

final controller = MapController(
  location: const LatLng(Angle.degree(0), Angle.degree(0)),
  zoom: 2,
);

MapLayout(
  controller: controller,
  builder: (context, transformer) {
    return TileLayer(
      builder: (context, x, y, z) {
        return const SizedBox();
      },
    );
  },
);

Alternatives

Packages that do the same job and could replace map.

Works with

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