Uh oh!
There was an error while loading. Please reload this page.
[google_maps_flutter] Replace deprecated color APIs in platform interface - #10477
Merged
auto-submit[bot] merged 4 commits intoNov 20, 2025
Conversation
This fixes two sets of API deprecations: - Within the package, cloudMapId was deprecated in the platform interface, and replaced with mapId. This updates everything that's not client-facing to use the mapId name instead (except for local variables in native code, where it ensure there's no potential confusion with the plugin-level map ID that tracks map instances in the plugin). - `Color.value` is deprecated. Rather than just replace it with `toARGB()`, this adds structured data to the Pigeon interface, so that it's not relying on magic knowledge on both sides of the interface that the ints are ARGB: - On Android, where the native SDK color representation is just a 32-bit ARGB, this adds a wrapper class to make that explicit in the Pigeon API surface. - On iOS, where `UIColor` uses four doubles, this passes the underlying `Color` doubles directly via the wrapper class, so that it's not lossy. - For legacy JSON representations, it continues to use the equivalent `toARGB()` directly, since it must remain compatible. This also annotates a couple of intentional internal uses of the deprecated `legacy` renderer type so that it won't show up in future repository deprecation audits. Also pays down some tech debt by renaming the now-very-poorly-named FLTGoogleMapJSONConversions.* file to FGMConversionUtils, since it is now mostly Pigeon type conversions. It also renames the legacy FLTGoogleMapJSONConversions bag-of-class-methods class to reflect that it is now only used for heatmaps, the last type that still uses JSON serialization in the Pigeon interface (flutter/flutter#117907). Part of flutter/flutter#159739
Contributor
There was a problem hiding this comment.
Code Review
This pull request correctly replaces the deprecated Color.value API with its recommended replacement, Color.toARGB32(), across the google_maps_flutter_platform_interface package. The changes are applied consistently for serialization logic in both the main codebase and the associated tests. The package version and changelog have been updated to reflect these changes. The code is clean and the changes are well-executed.
Uh oh!
There was an error while loading. Please reload this page.
engine-flutter-autoroll added a commit
to engine-flutter-autoroll/flutter
that referenced
this pull request
Nov 21, 2025
github-merge-queueBot
pushed a commit
to flutter/flutter
that referenced
this pull request
Nov 21, 2025
flutter/packages@b1e2fb0...e67b6be 2025-11-21 danferreiradev@gmail.com [file_selector] Implement canCreateDirectories on macos and linux (flutter/packages#10443) 2025-11-21 stuartmorgan@google.com [various] Replace deprecated Color.value in SVG packages (flutter/packages#10482) 2025-11-20 10687576+bparrishMines@users.noreply.github.com [pigeon] Fixes compilation error with unbounded type parameter for InstanceManager (flutter/packages#10483) 2025-11-20 stuartmorgan@google.com [webview_flutter] Replace deprecated Color.value (flutter/packages#10480) 2025-11-20 stuartmorgan@google.com [google_maps_flutter] Replace deprecated color APIs in platform interface (flutter/packages#10477) 2025-11-20 engine-flutter-autoroll@skia.org Roll Flutter (stable) from b45fa18 to f5a8537 (12 revisions) (flutter/packages#10478) 2025-11-20 engine-flutter-autoroll@skia.org Roll Flutter from de4be4f to 9f383e0 (21 revisions) (flutter/packages#10481) 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 flutter-ecosystem@google.com 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
okorohelijah pushed a commit
to okorohelijah/flutter
that referenced
this pull request
Nov 21, 2025
flutter/packages@b1e2fb0...e67b6be 2025-11-21 danferreiradev@gmail.com [file_selector] Implement canCreateDirectories on macos and linux (flutter/packages#10443) 2025-11-21 stuartmorgan@google.com [various] Replace deprecated Color.value in SVG packages (flutter/packages#10482) 2025-11-20 10687576+bparrishMines@users.noreply.github.com [pigeon] Fixes compilation error with unbounded type parameter for InstanceManager (flutter/packages#10483) 2025-11-20 stuartmorgan@google.com [webview_flutter] Replace deprecated Color.value (flutter/packages#10480) 2025-11-20 stuartmorgan@google.com [google_maps_flutter] Replace deprecated color APIs in platform interface (flutter/packages#10477) 2025-11-20 engine-flutter-autoroll@skia.org Roll Flutter (stable) from b45fa18 to f5a8537 (12 revisions) (flutter/packages#10478) 2025-11-20 engine-flutter-autoroll@skia.org Roll Flutter from de4be4f to 9f383e0 (21 revisions) (flutter/packages#10481) 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 flutter-ecosystem@google.com 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
mboetger pushed a commit
to mboetger/flutter
that referenced
this pull request
Dec 2, 2025
flutter/packages@b1e2fb0...e67b6be 2025-11-21 danferreiradev@gmail.com [file_selector] Implement canCreateDirectories on macos and linux (flutter/packages#10443) 2025-11-21 stuartmorgan@google.com [various] Replace deprecated Color.value in SVG packages (flutter/packages#10482) 2025-11-20 10687576+bparrishMines@users.noreply.github.com [pigeon] Fixes compilation error with unbounded type parameter for InstanceManager (flutter/packages#10483) 2025-11-20 stuartmorgan@google.com [webview_flutter] Replace deprecated Color.value (flutter/packages#10480) 2025-11-20 stuartmorgan@google.com [google_maps_flutter] Replace deprecated color APIs in platform interface (flutter/packages#10477) 2025-11-20 engine-flutter-autoroll@skia.org Roll Flutter (stable) from b45fa18 to f5a8537 (12 revisions) (flutter/packages#10478) 2025-11-20 engine-flutter-autoroll@skia.org Roll Flutter from de4be4f to 9f383e0 (21 revisions) (flutter/packages#10481) 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 flutter-ecosystem@google.com 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
reidbaker pushed a commit
to AbdeMohlbi/flutter
that referenced
this pull request
Dec 10, 2025
flutter/packages@b1e2fb0...e67b6be 2025-11-21 danferreiradev@gmail.com [file_selector] Implement canCreateDirectories on macos and linux (flutter/packages#10443) 2025-11-21 stuartmorgan@google.com [various] Replace deprecated Color.value in SVG packages (flutter/packages#10482) 2025-11-20 10687576+bparrishMines@users.noreply.github.com [pigeon] Fixes compilation error with unbounded type parameter for InstanceManager (flutter/packages#10483) 2025-11-20 stuartmorgan@google.com [webview_flutter] Replace deprecated Color.value (flutter/packages#10480) 2025-11-20 stuartmorgan@google.com [google_maps_flutter] Replace deprecated color APIs in platform interface (flutter/packages#10477) 2025-11-20 engine-flutter-autoroll@skia.org Roll Flutter (stable) from b45fa18 to f5a8537 (12 revisions) (flutter/packages#10478) 2025-11-20 engine-flutter-autoroll@skia.org Roll Flutter from de4be4f to 9f383e0 (21 revisions) (flutter/packages#10481) 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 flutter-ecosystem@google.com 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
creatorpiyush pushed a commit
to creatorpiyush/packages
that referenced
this pull request
Jun 10, 2026
…face (flutter#10477) Replaces the deprecated `Color.value` with the replacement `toARGB()`. Since this is for legacy JSON representations, it continues it must remain compatible, so uses the same representation (unlike flutter#10474 where it's replaced with structured representations). Part of flutter/flutter#159739 ## Pre-Review Checklist [^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.
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 freeto 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.
Replaces the deprecated
Color.valuewith the replacementtoARGB(). Since this is for legacy JSON representations, it continues it must remain compatible, so uses the same representation (unlike #10474 where it's replaced with structured representations).Part of flutter/flutter#159739
Pre-Review Checklist
[shared_preferences]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 under1.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 under1.///).Footnotes
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↩3