-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[google_maps_flutter] Replace deprecated methods #10377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[google_maps_flutter] Replace deprecated methods #10377
Conversation
- Replaces `Color` methods that were deprecated in Flutter with their recommended replacement. - Replaces `cloudMapId` with the newer `mapId` from the platform interface configuration object (the former is now just a deprecated passthrough to the latter). Part of flutter/flutter#159739
There was a problem hiding this 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 correctly replaces several deprecated APIs. The use of deprecated Color methods has been updated to their modern equivalents, and cloudMapId has been replaced with the current mapId. The changes are correct and align with the goal of keeping the codebase up-to-date. I have one minor suggestion to make the changelog entry more comprehensive.
| @@ -1,3 +1,7 @@ | |||
| ## 0.5.14+3 | |||
|
|
|||
| * Replaces uses of deprecated `Color` properties. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good suggestion!
| @@ -1,3 +1,7 @@ | |||
| ## 0.5.14+3 | |||
|
|
|||
| * Replaces uses of deprecated `Color` properties. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good suggestion!
Colormethods that were deprecated in Flutter with their recommended replacement.cloudMapIdwith the newermapIdfrom the platform interface configuration object (the former is now just a deprecated passthrough to the latter).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