Skip to content

[google_maps_flutter] Fix styles on web#11629

Merged
auto-submit[bot] merged 2 commits intoflutter:mainfrom
stuartmorgan-g:maps-empty-id-fix
May 1, 2026
Merged

[google_maps_flutter] Fix styles on web#11629
auto-submit[bot] merged 2 commits intoflutter:mainfrom
stuartmorgan-g:maps-empty-id-fix

Conversation

@stuartmorgan-g
Copy link
Copy Markdown
Collaborator

Fixes a regression from #7882 that caused non-cloud map styling not be applied on web, since the app-facing package changed to sending '' rather than null when a cloud mapId wasn't provided, and the web implementation didn't handle that case.

Fixes flutter/flutter#185171

Replace this paragraph with a description of what this PR is changing or adding, and why. Consider including before/after screenshots.

List which issues are fixed by this PR. You must list at least one issue.

Pre-Review Checklist

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 2

Fixes a regression from flutter#7882
that caused non-cloud map styling not be applied on web, since the
app-facing package changed to sending '' rather than null when a cloud
mapId wasn't provided, and the web implementation didn't handle that
case.

Fixes flutter/flutter#185171
@stuartmorgan-g stuartmorgan-g requested a review from mdebbar May 1, 2026 15:36
@stuartmorgan-g stuartmorgan-g added the triage-web Should be looked at in web triage label May 1, 2026
@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label May 1, 2026
Copy link
Copy Markdown

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

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 fixes a bug in the Google Maps Flutter Web implementation where non-cloud styles were not being applied when an empty string was passed as a map ID. The changes ensure that an empty map ID is treated as null, allowing custom styles to be correctly applied. Additionally, the PR includes updated integration tests to verify this behavior and minor documentation cleanup. A suggestion was made to simplify the logic for handling the map ID string to improve readability.

Comment thread packages/google_maps_flutter/google_maps_flutter_web/lib/src/convert.dart Outdated
…onvert.dart

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@github-actions github-actions Bot removed the CICD Run CI/CD label May 1, 2026
@stuartmorgan-g stuartmorgan-g added CICD Run CI/CD autosubmit Merge PR when tree becomes green via auto submit App labels May 1, 2026
@auto-submit
Copy link
Copy Markdown
Contributor

auto-submit Bot commented May 1, 2026

autosubmit label was removed for flutter/packages/11629, because - The status or check suite Mac_x64 ios_build_all_packages stable has failed. Please fix the issues identified (or deflake) before re-applying this label.

@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label May 1, 2026
@stuartmorgan-g stuartmorgan-g added the autosubmit Merge PR when tree becomes green via auto submit App label May 1, 2026
@auto-submit auto-submit Bot merged commit 66a9be0 into flutter:main May 1, 2026
83 checks passed
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 platform-web triage-web Should be looked at in web triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[google_maps_flutter][web] Use of the parameter style has no effect on the Map on the Web platform

2 participants