Skip to content

[google_maps_flutter] Add editable polyline and polygon support (web)#11920

Draft
lume-code wants to merge 1 commit into
flutter:mainfrom
lume-code:editable-shapes-app-facing
Draft

[google_maps_flutter] Add editable polyline and polygon support (web)#11920
lume-code wants to merge 1 commit into
flutter:mainfrom
lume-code:editable-shapes-app-facing

Conversation

@lume-code

@lume-code lume-code commented Jun 17, 2026

Copy link
Copy Markdown

⚠️ Draft — blocked on the platform interface (and web) landing.
This is part 3 of 3 splitting #11492 along the federated plugin, per the
contributing guidelines.
It depends on google_maps_flutter_platform_interface 2.16.0 (#11492) and google_maps_flutter_web 0.7.0 (#11919). Once those land in main, CI's pathified jobs (make-deps-path-based) resolve the in-repo packages automatically; this PR will be marked ready then (and is fully green once both publish to pub.dev).

Wires the app-facing package up to the editable polyline/polygon edit events.

Changes — google_maps_flutter (2.17.1 → 2.18.0)

  • Subscribes to the platform interface onPolylineEdited / onPolygonEdited streams in controller.dart.
  • Dispatches them to the onEdited callbacks on Polyline / Polygon in google_map.dart.
  • Adds tests for the dispatch and for editable change propagation.

Usage

Polyline(
  polylineId: const PolylineId('editable-route'),
  points: [...],
  editable: true,
  onEdited: (List<LatLng> updatedPoints) {
    // Handle the updated path.
  },
)

Editing is currently web-only; the editable property is silently ignored on Android and iOS.

Part of #11492 · Interface PR: #11492 · Web PR: #11919 · Fixes flutter/flutter#71248

Pre-Review Checklist

Footnotes

  1. See the test exemption and version/CHANGELOG exemption docs for details. 2

Subscribes to the platform interface `onPolylineEdited` / `onPolygonEdited`
streams and dispatches them to the `onEdited` callbacks on `Polyline` / `Polygon`.
Editing is currently only supported on web.

Bumps to 2.18.0. Third of three PRs splitting flutter#11492; depends on
google_maps_flutter_platform_interface 2.16.0 and google_maps_flutter_web 0.7.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[google_maps_flutter_web] Add "User-Editable Shapes" feature

1 participant