-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[google_maps_flutter] Marker dragging events #2653
[google_maps_flutter] Marker dragging events #2653
Conversation
7d49770
to
18381e1
Compare
@JamesMcIntosh nice PR.. could you rebase & perhaps add a small demo in the example app? |
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.
Thanks for the PR. It mostly looks good, I left some comments.
packages/google_maps_flutter/google_maps_flutter/lib/src/marker.dart
Outdated
Show resolved
Hide resolved
+1 |
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.
Hello there! Thank you very much for the PR!
We're about to merge a change to google_maps_flutter, so it follows the "federated implementation" style. This will allow new platforms (like web) to be supported.
Once that change lands, some of the code that you've created/touched should live in the google_maps_flutter_platform_interface
package, and not here.
Check out this PR on how we migrated the whole plugin to the new architecture. It should give you clues on how to modify your code to conform to it.
Feel free to reach out to me if you need any assistance with this!
packages/google_maps_flutter/google_maps_flutter/lib/src/controller.dart
Outdated
Show resolved
Hide resolved
The refactor has landed. |
is it work on iOs? |
59c4987
to
2ca3d63
Compare
@ditman I can't get the build to work properly without directly specifying The problem I think is because there are changes in the When I tried without the path it fails because I have bumped the version for |
@JamesMcIntosh that is correct, you need to land your changes in a package-by-package basis. I'd recommend that you split your changes to the platform_interface package to a separate PR, and then refresh this PR once your platform_interface package changes land. That way you'll be able to specify a version dependency here. |
2ca3d63
to
c3ab6e7
Compare
c3ab6e7
to
a71d033
Compare
a71d033
to
08e092a
Compare
It's a much needed feature. @JamesMcIntosh you have done a great work. |
We apologize for the long delay in getting back to this PR. We’re in the process of overhauling our PR triage system to respond much more quickly in the future, as well as working through the backlog. We're in the middle of doing null-safety migration for this plugin, but once that is landed @ditman will work with you on getting this reviewed. |
@JamesMcIntosh @ditman Marker dragging events is a much needed feature. We wish and hope it become a part of the google maps flutter as soon as possible. |
08e092a
to
72ca4b1
Compare
Hi @ditman, I've migrated the code in the PR to be null safe, are you able to review it please? |
...ges/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/events/map_event.dart
Outdated
Show resolved
Hide resolved
packages/google_maps_flutter/google_maps_flutter_platform_interface/CHANGELOG.md
Show resolved
Hide resolved
dbc0c82
to
dad021e
Compare
d3e0900
to
d020db4
Compare
Hi @stuartmorgan, I have added the requested tests. |
Because the check is totally broken 🤦🏻 I'll have a fix posted shortly. |
Once #4368 lands you'll need to merge/rebase, and then it should work. Sorry for the hassle, and thanks for flagging it right away. |
d020db4
to
0ce2216
Compare
Taking a look right now. |
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.
LGTM, let's land this! Thanks for the extra coverage on the marker type!
The |
All requested changes were actually done!
…ter#2653) This PR adds onDragStart(LatLng) and onDrag(LatLng) events to Marker objects, in addition to the already existing onDragEnd.
* master: (51 commits) [webview_flutter] Update version number app_facing package (flutter#4375) [webview_flutter] Adjust integration test domains (flutter#4383) Remove some trivial custom analysis options files (flutter#4379) [google_maps_flutter_platfomr_interface] Add Marker drag events (flutter#2653) [flutter_plugin_tools] Improve version check error handling (flutter#4376) [flutter_plugin_tools] Allow overriding breaking change check (flutter#4369) [url_launcher] Error handling when URL cannot be parsed with Uri.parse (flutter#4365) [webview_flutter] Migrate main package to fully federated architecture. (flutter#4366) [google_sign_in] Bump minimum Flutter version and iOS deployment target (flutter#4334) Add false secret lists, and enforce ordering (flutter#4372) [camera_web] Update usage documentation (flutter#4371) [video_player] VTT Support (flutter#2878) Require authors file (flutter#4367) [flutter_plugin_tools] Fix federated safety check (flutter#4368) [webview_flutter] Extract WKWebView implementation into a separate package (flutter#4345) [webview_flutter] Extract Android implementation into a separate package (flutter#4343) [in_app_purchase] Ensure the `introductoryPriceMicros` field is populated correctly. (flutter#4364) [flutter_plugin_tools] Add a federated PR safety check (flutter#4329) [camera] Add web support (flutter#4240) [webview_flutter] Bump minimum Flutter version and iOS deployment target (flutter#4361) ... # Conflicts: # packages/webview_flutter/webview_flutter/lib/platform_interface.dart # packages/webview_flutter/webview_flutter/lib/src/webview_method_channel.dart # packages/webview_flutter/webview_flutter/lib/webview_flutter.dart
…ter#2653) This PR adds onDragStart(LatLng) and onDrag(LatLng) events to Marker objects, in addition to the already existing onDragEnd.
Description
Add events to track start of drag and position during drag to platform interface
Implementation in PR: #2838
Related Issues
flutter/flutter#26117
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
). This will ensure a smooth and quick review process.///
).flutter analyze
) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?