Skip to content

About

MapKit for Flutter — MKMapView on iOS and macOS with Apple's exact symbol names: annotations, clustering, overlays, tile overlays, Look Around, snapshots, mockable controller.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

mapkit_flutter

pub package pub points CI license

Apple Maps in your Flutter app on iOS and macOS. mapkit_flutter shows Apple's own MKMapView as a widget — no API key, no bundled third-party SDK, Apple's exact MapKit symbol names, and declarative sets diffed natively.

mapkit_flutter demo

Quick start

flutter pub add mapkit_flutter material_ui

Your app must target at least iOS 17 and macOS 14, higher than Flutter's defaults (Setup shows where). Building MKMapView on Android or web throws MapKitUnsupportedPlatformException.

import 'package:mapkit_flutter/mapkit_flutter.dart';
import 'package:material_ui/material_ui.dart';

void main() {
  runApp(
    MaterialApp(
      home: MKMapView(
        initialCamera: MKMapCamera(
          centerCoordinate: CLLocationCoordinate2D(
            latitude: 37.334922,
            longitude: -122.009033,
          ),
          distance: 1500, // meters from the camera to the center
        ),
      ),
    ),
  );
}

What's included

  • Map styles & controls. MKStandardMapConfiguration (with realistic 3D elevation), MKHybridMapConfiguration, MKImageryMapConfiguration, POI filtering, traffic, compass/scale, and user tracking.
  • Declarative pins & clustering. MKPointAnnotation with system balloon markers, SF Symbol glyphs, custom images, callout/selection/drag callbacks, and native clusteringIdentifier grouping.
  • Vector & tile overlays. MKPolyline (including geodesic and gradient strokes), MKPolygon with holes, MKCircle, and MKTileOverlay with snapshot compositing.
  • Mockable controller. MKMapViewController interface for camera/region, coordinate conversions, snapshots, and iOS Look Around.
  • Optional CameraConveniences. zoomTo, zoomBy, scrollBy, and fitCoordinates layered over the canonical MapKit API.
  • Loud failures. Invalid bounds, iOS-only props on macOS, and callbacks missing their opt-in flag throw in every build mode.

Guides

Agent skill

This package ships an agent skill in skills/mapkit-flutter-scaffold/. Install it into your project's agent config with:

dart run skills@ get --package mapkit_flutter --all

Contributing

See CONTRIBUTING.md.

License

MIT — see LICENSE.

About

MapKit for Flutter — MKMapView on iOS and macOS with Apple's exact symbol names: annotations, clustering, overlays, tile overlays, Look Around, snapshots, mockable controller.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages