Skip to content

[google_maps_flutter_platform_interface] Fix PinConfig code sample - #12259

Merged
auto-submit[bot] merged 1 commit into
flutter:mainfrom
meliharik:docs-fix-pinconfig-sample
Aug 19, 2026
Merged

auto-submit[bot] merged 1 commit into
flutter:mainfrom
meliharik:docs-fix-pinconfig-sample

Conversation

@meliharik

@meliharik meliharik commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

The second PinConfig sample in the BitmapDescriptor docs (bitmap.dart:1009) doesn't compile, for two reasons:

  1. Unbalanced parens — the block opens PinConfig(, BitmapGlyph( and BitmapDescriptor.asset( but only closes two of them. (The sibling TextGlyph sample directly above closes correctly.)
  2. Missing await — BitmapDescriptor.asset is declared static Future<AssetMapBitmap> asset(...) (line 278), while BitmapGlyph.bitmap is final BitmapDescriptor bitmap; (line 1106), so a bare BitmapDescriptor.asset(...) can't be assigned to it.

The repo's own examples use the awaited form — e.g. google_maps_flutter_web/example/latest/integration_test/advanced_markers_test.dart:422:

bitmap: await BitmapDescriptor.asset(

The sample now mirrors that. Paren balance goes from 5 open / 4 close to 5 / 5.

Doc comment only; bumped to 2.16.1 with a CHANGELOG entry per the versioning policy — happy to switch to ## NEXT if that's preferred for a docs-only change.

Pre-launch Checklist

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I read the [Tree Hygiene] wiki 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.
  • I [linked to at least one issue that this PR fixes] in the description above. (No tracker issue exists for this; it's a two-line doc-sample fix. Happy to file one in flutter/flutter if required.)
  • I updated pubspec.yaml with an appropriate new version according to the [pub versioning philosophy], or I have commented below to indicate which [version change exemption] this PR falls under.
  • I updated CHANGELOG.md to add a description of the change, [following repository CHANGELOG style], or I have commented below to indicate which [CHANGELOG exemption] this PR falls under.

@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 updates the google_maps_flutter_platform_interface package to version 2.16.1. The changes correct the PinConfig code sample in the BitmapDescriptor documentation by adding the await keyword to the asynchronous BitmapDescriptor.asset call and adjusting the formatting. There are no review comments, and I have no feedback to provide.

@stuartmorgan-g
stuartmorgan-g self-requested a review July 21, 2026 18:15

@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

(Unfortunately we don't have an excerpting system for doc comments in this repo like we do for READMEs)

@stuartmorgan-g stuartmorgan-g added the CICD Run CI/CD label Jul 28, 2026
@stuartmorgan-g

Copy link
Copy Markdown
Collaborator

@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

@bparrishMines bparrishMines added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 19, 2026
@auto-submit
auto-submit Bot merged commit 2141a43 into flutter:main Aug 19, 2026
13 checks passed
pull Bot pushed a commit to Superoldman96/flutter that referenced this pull request Aug 20, 2026
…r#191420)

flutter/packages@fdd7d39...1785501

2026-08-20 [email protected] [material_ui]
Cleans up shader files and exposes ink_splash shader
(flutter/packages#12421)
2026-08-19 [email protected] [material_ui] Fixes
typo in code and tests (flutter/packages#12503)
2026-08-19 [email protected] [pigeon]
Fixes lint error from unused codec (flutter/packages#12512)
2026-08-19 [email protected]
[camera_android_camerax] Add explicit concurrent-futures dependency
(flutter/packages#12373)
2026-08-19 [email protected] [go_router]
migrates to material_ui and cupertino_ui (flutter/packages#12504)
2026-08-19 [email protected] [animations] Migrate to material_ui
(flutter/packages#12467)
2026-08-19 [email protected] [material_ui] Add
Material tokens (version 38.2.50) (flutter/packages#12471)
2026-08-19 [email protected] Add
`triage-design` label (flutter/packages#12488)
2026-08-19 [email protected]
[google_maps_flutter_platform_interface] Fix PinConfig code sample
(flutter/packages#12259)

If this roll has caused a breakage, revert this CL and stop the roller
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
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.

3 participants