Skip to content
pubscout

google_maps_flutter_web

0.6.5, released 4 weeks ago by flutter.dev

Web platform implementation of google_maps_flutter.

WASM-ready
$ flutter pub add google_maps_flutter_web
Source repository

What it does

Provides the web platform implementation for the google_maps_flutter plugin. It uses the Google Maps JavaScript API to render interactive maps inside Flutter web applications.

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

Use it when

  • Building a Flutter web application that needs to display Google Maps
  • Using google_maps_flutter as an endorsed federated plugin which automatically includes web support

Skip it when

  • Building a mobile-only application that does not target the web
  • Needing features unsupported on the web version such as rotation, tilt, or lite mode

Strengths

  • Endorsed federated plugin that works automatically with google_maps_flutter
  • Supports advanced markers, custom styling, and marker clustering

Weaknesses

  • Certain features like compass, rotation, and tilt are unavailable due to web limitations
  • Requires manual addition of Google Maps JavaScript API script tags in web/index.html

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
6

Requires getting an API key for the Google Maps JavaScript API and adding the script tag to the web/index.html file.

// This package is an endorsed federated plugin.
// Simply use google_maps_flutter normally in your cross-platform app:
import 'package:google_maps_flutter/google_maps_flutter.dart';

GoogleMap(
  initialCameraPosition: CameraPosition(
    target: LatLng(37.4223, -122.0848),
    zoom: 11,
  ),
);

Alternatives

Packages that do the same job and could replace google_maps_flutter_web.

Works with

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