Skip to content

v5.0.0

Latest

Choose a tag to compare

@mattermoran mattermoran released this 22 Jul 16:16
504c25b

What's Changed

  • v5: add support for desktop and web platforms, universal links and store urls by @mattermoran in #224

Breaking Changes

  • MapLauncher.showMarker() / showDirections()MapLauncher.marker(...).show() / .directions(...).show(). Methods on AvailableMap are gone.
  • AvailableMapSupportedMap. Name and icon moved to MapType.displayName / MapType.icon. SupportedMap only pairs a MapType with isInstalled.
  • CoordsLocationCoords: Coords(latitude, longitude).coords(lat, lng, title: '...'). Title moved into the location.
  • Waypoint removed. Use LocationCoords directly.
  • DirectionsModeTravelMode.
  • extraParamsextra: accepts typed extras (GoogleExtra, AppleExtra, etc.) or raw Map<String, String>.
  • MapType enum reordered, now carries displayName, playStoreId, appStoreId, hasUniversalLink, icon.
  • getAvailableMaps() returns List<SupportedMap> instead of List<AvailableMap>.
  • isMapAvailable() removed. Use getSupportedMaps() on a request.
  • Minimum SDK: Dart 3.11+, Flutter 3.3+.

New Features

  • Desktop & web support (macOS, Windows, Linux, web) via universal links.
  • Scheme-to-universal fallback when native app isn't installed.
  • Search-based markers and directions (Google, Apple).
  • URL inspection: getUrl(), getUniversalUrl(), getSchemeUrl().
  • Typed extras: GoogleExtra, AppleExtra, WazeExtra, TencentExtra, YandexNaviExtra.
  • getSupportedMaps() — per-request discovery that respects capabilities.
  • Store URLs: MapType.appStoreUrl / MapType.playStoreUrl.
  • MapLaunchException with URL and cause.

Docs

  • Added CONTRIBUTING.md for adding new map providers.

Full Changelog: v4.6.0...v5.0.0