Skip to content

Conversation

@4rthurmonteiro
Copy link
Contributor

@4rthurmonteiro 4rthurmonteiro commented Aug 27, 2025

Platform interface portion of #9089.

Part of flutter/flutter#167137

Pre-Review Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

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 3

Copy link

@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 adds support for enabling, disabling, and positioning the camera control button for the web version of Google Maps. This is achieved by adding webCameraControlEnabled and webCameraControlPosition to the MapConfiguration class, along with a new WebCameraControlPosition enum. The changes are consistently integrated throughout the MapConfiguration class, including updates to equality checks, hash code generation, and diffing logic. Corresponding tests have been added to verify the new functionality, and the package version and changelog have been updated. I have found one minor documentation error that should be corrected.

…rface/lib/src/types/web_camera_control_position.dart

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

/// This setting controls how the API handles camera control button on the map
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Needs a period at the end.

Copy link
Contributor Author

@4rthurmonteiro 4rthurmonteiro Aug 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

// found in the LICENSE file.

/// This setting controls how the API handles camera control button on the map
/// See https://developers.google.com/maps/documentation/javascript/reference/control#ControlPosition for more details.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Blank line above this; per Effective Dart style, there should be a blank line after the first sentence in a doc comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

// found in the LICENSE file.

/// This setting controls how the API handles camera control button on the map
/// See https://developers.google.com/maps/documentation/javascript/reference/control#ControlPosition for more details.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: please add a line break after the URL so this line isn't so long.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

inlineStartBlockStart,

/// Elements are positioned on the left, above bottom-left elements,
/// and flow upwards. Consider using INLINE_START_BLOCK_END instead.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line break and blank line after the period.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This applies to all the comments below as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

@stuartmorgan-g stuartmorgan-g added federated: partial_changes PR that contains changes for only a single package of a federated plugin change triage-web Should be looked at in web triage labels Aug 27, 2025
Copy link
Collaborator

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@harryterkelsen harryterkelsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@4rthurmonteiro
Copy link
Contributor Author

Hey @harryterkelsen @stuartmorgan-g,

I'm unable to merge this pull request, and I have a question about the next step.

I'm following the documentation for "Changing federated plugins" and am at step 4, which says: "Once it has been reviewed, landed, and published, update the initial PR..."

Who is responsible for landing and publishing the changes?

Thanks

@stuartmorgan-g stuartmorgan-g added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 28, 2025
@stuartmorgan-g
Copy link
Collaborator

The Flutter team (generally the last reviewer) lands changes, and a bot publishes them.

@auto-submit auto-submit bot merged commit 37bafd4 into flutter:main Aug 28, 2025
80 checks passed
@4rthurmonteiro
Copy link
Contributor Author

The Flutter team (generally the last reviewer) lands changes, and a bot publishes them.

thanks @stuartmorgan-g! Once the new version is published, I'll update the other pull request to reflect the changes.

engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 29, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Aug 29, 2025
flutter/packages@141d8e3...a3f09e5

2025-08-28 stuartmorgan@google.com [google_sign_in] Implement hosted
domain on Android (flutter/packages#9871)
2025-08-28 monteiroamelo@gmail.com
[google_maps_flutter_platform_interface] Add cameraControl
enable/disable & position on web (flutter/packages#9897)

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 Sep 18, 2025
…r#174706)

flutter/packages@141d8e3...a3f09e5

2025-08-28 stuartmorgan@google.com [google_sign_in] Implement hosted
domain on Android (flutter/packages#9871)
2025-08-28 monteiroamelo@gmail.com
[google_maps_flutter_platform_interface] Add cameraControl
enable/disable & position on web (flutter/packages#9897)

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
korca0220 pushed a commit to korca0220/flutter that referenced this pull request Sep 22, 2025
…r#174706)

flutter/packages@141d8e3...a3f09e5

2025-08-28 stuartmorgan@google.com [google_sign_in] Implement hosted
domain on Android (flutter/packages#9871)
2025-08-28 monteiroamelo@gmail.com
[google_maps_flutter_platform_interface] Add cameraControl
enable/disable & position on web (flutter/packages#9897)

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
Jaineel-Mamtora pushed a commit to Jaineel-Mamtora/flutter_forked that referenced this pull request Sep 24, 2025
…r#174706)

flutter/packages@141d8e3...a3f09e5

2025-08-28 stuartmorgan@google.com [google_sign_in] Implement hosted
domain on Android (flutter/packages#9871)
2025-08-28 monteiroamelo@gmail.com
[google_maps_flutter_platform_interface] Add cameraControl
enable/disable & position on web (flutter/packages#9897)

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
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 federated: partial_changes PR that contains changes for only a single package of a federated plugin change p: google_maps_flutter triage-web Should be looked at in web triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants