Skip to content

[google_maps_flutter_platform_interface] Add onPointOfInterestTap support - #12752

Merged
auto-submit[bot] merged 2 commits into
flutter:mainfrom
tenninebt:google-maps-poi-platform-interface
Sep 15, 2026
Merged

auto-submit[bot] merged 2 commits into
flutter:mainfrom
tenninebt:google-maps-poi-platform-interface

Conversation

@tenninebt

@tenninebt tenninebt commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

This is the platform interface portion of #11872

Adds PointOfInterestId, PointOfInterestTapEvent, and GoogleMapsFlutterPlatform.onPointOfInterestTap. The default implementation returns an empty stream so existing platform implementations are not broken.

Fixes flutter/flutter#60695 (platform interface only; app-facing and implementation packages land in follow-up PRs per the federated plugin contribution process).

Pre-Review Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the AI contribution guidelines and understand my responsibilities, or I am not using AI tools.
  • I read the Tree Hygiene page, which explains my responsibilities.
  • I read and followed the relevant style guides and ran the auto-formatter.
  • I signed the CLA.
  • The title of the PR starts with the name of the package surrounded by square brackets, e.g. [shared_preferences]
  • I linked to at least one issue that this PR fixes in the description above.
  • I followed the version and CHANGELOG instructions, using semantic versioning and the repository CHANGELOG style.
  • I updated/added any relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making.
  • All existing and new tests are passing.

@stuartmorgan-g — this is the first sub-PR from #11872 as requested.

@google-cla

google-cla Bot commented Sep 4, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds support for tapping points of interest (POIs) on the map by introducing PointOfInterestId, PointOfInterestTapEvent, and the onPointOfInterestTap stream. Feedback suggests enhancing the API by creating a PointOfInterest class that includes the POI's name and coordinates, rather than just its ID. Additionally, it is recommended to throw an UnimplementedError in the default implementation of onPointOfInterestTap to maintain consistency with other platform interface methods, and to update the corresponding tests accordingly.

…port

Add PointOfInterestId, PointOfInterestTapEvent, and a default empty
onPointOfInterestTap stream so implementations can opt in without a
breaking platform-interface change.
@tenninebt
tenninebt force-pushed the google-maps-poi-platform-interface branch from 4b55349 to a0bb5d2 Compare September 4, 2026 16:08

@stuartmorgan-g stuartmorgan-g left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@tarrinneal or @bparrishMines for secondary review

@bparrishMines bparrishMines left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@flutter-dashboard flutter-dashboard Bot removed the CICD Run CI/CD label Sep 14, 2026
@stuartmorgan-g stuartmorgan-g added CICD Run CI/CD autosubmit Merge PR when tree becomes green via auto submit App labels Sep 14, 2026
@auto-submit
auto-submit Bot merged commit bebbb57 into flutter:main Sep 15, 2026
14 checks passed
dkwingsmt pushed a commit to dkwingsmt/flutter that referenced this pull request Sep 15, 2026
…r#192809)

flutter/packages@9caa77c...bebbb57

2026-09-15 [email protected]
[google_maps_flutter_platform_interface] Add onPointOfInterestTap
support (flutter/packages#12752)
2026-09-14 [email protected] [google_maps_flutter] Adopts new
async/await Swift Pigeon support (flutter/packages#12860)
2026-09-14 [email protected]
[material_ui] Fix `todayBorder` color being overridden by
`todayForegroundColor` in `YearPicker` (flutter/packages#12697)
2026-09-13 [email protected] Roll Flutter from
2553f89 to 8b3e8f5 (4 revisions) (flutter/packages#12856)
2026-09-12 [email protected] [google_maps_flutter] Convert
remaining code to Swift (flutter/packages#12768)
2026-09-12 [email protected] Roll Flutter from
63b9518 to 2553f89 (62 revisions) (flutter/packages#12855)
2026-09-12 [email protected] Roll Flutter (stable) from
d3b14c8 to 9584c67 (15 revisions) (flutter/packages#12854)
2026-09-12 [email protected] [material_ui]
Update gen_defaults color helper (flutter/packages#12846)
2026-09-11 [email protected] [material_ui] Port
flutter/flutter flutter#185475 "Accessibility: Add semanticLabel to MenuAnchor"
(flutter/packages#12806)

If this roll has caused a breakage, revert this CL and set the roller
to dry run mode using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected] on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
@tenninebt

Copy link
Copy Markdown
Contributor Author

🥳

auto-submit Bot pushed a commit that referenced this pull request Sep 24, 2026
…ns (#12880)

## Summary

- Platform implementations of `onPointOfInterestTap` for **Android**, **iOS** (`sdk9` / `sdk10` + shared source), and **web**
- Depends on published `google_maps_flutter_platform_interface` 2.17.0 from #12752
- Federated implementations PR (per [Changing federated plugins](https://github.com/flutter/flutter/blob/master/docs/ecosystem/contributing/README.md#changing-federated-plugins)); app-facing package will follow in a separate PR

**Notes**
- Frozen `google_maps_flutter_ios` is intentionally unchanged (no new features per that package’s README); iOS support is in `google_maps_flutter_ios_sdk9` / `google_maps_flutter_ios_sdk10`
- iOS DI follows the Swift controller conventions (required `callbackHandler` on the designated initializer)

Supersedes the separate drafts #12881 (web) and #12882 (iOS).

Part of #11872 / flutter/flutter#60695.

## Pre-Review Checklist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App CICD Run CI/CD p: google_maps_flutter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[google_maps_flutter] Add callback for click on google poi's on the map

3 participants