[google_maps_flutter_platform_interface] Fix PinConfig code sample#12259
Open
meliharik wants to merge 1 commit into
Open
[google_maps_flutter_platform_interface] Fix PinConfig code sample#12259meliharik wants to merge 1 commit into
meliharik wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
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
self-requested a review
July 21, 2026 18:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The second
PinConfigsample in theBitmapDescriptordocs (bitmap.dart:1009) doesn't compile, for two reasons:PinConfig(,BitmapGlyph(andBitmapDescriptor.asset(but only closes two of them. (The siblingTextGlyphsample directly above closes correctly.)await—BitmapDescriptor.assetis declaredstatic Future<AssetMapBitmap> asset(...)(line 278), whileBitmapGlyph.bitmapisfinal BitmapDescriptor bitmap;(line 1106), so a bareBitmapDescriptor.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: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
## NEXTif that's preferred for a docs-only change.Pre-launch Checklist
pubspec.yamlwith 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.CHANGELOG.mdto add a description of the change, [following repository CHANGELOG style], or I have commented below to indicate which [CHANGELOG exemption] this PR falls under.