Update flutter_google_street_view to support newer Dart and Flutter versions - #43
Update flutter_google_street_view to support newer Dart and Flutter versions#43AleksDoesCode wants to merge 2 commits into
Conversation
|
Any chance we can get this merged asap? Thanks! 😄 |
You can already use this fork by updating your pubspec.yaml to this: flutter_google_street_view: |
|
I had no luck building this in my environment -- seem to be problems registering the plugin class. I tried both with the auxiliary reference to street_view_platform_interface, and leaving that out. I'm able to build with another fork but I can't immediately see what it is about the plugin setup there that works better with my environment. |
|
@AleksDoesCode I'm using your fork but app crashes when you select a location that does not have street view available. Is there something that I need to update? |
|
@EugeneFerry this also happens to me. There is some google API you can call to check if street view is available for a specific location beforehand. I am not sure why the crash occurres and we just slapped this as a fix on it. If you find a better fix, feel free to submit a PR to my fork. |
|
@EugeneFerry have a look at this workaround here: #39 |
Dear Maintainers,
This pull request introduces necessary changes to ensure compatibility with newer Dart and Flutter versions. Specifically:
Why the changes were necessary:
Changes made:
">=2.14.0 <3.0.0"Important Note:
Before merging this pull request, the internal dependency on street_view_platform_interface in flutter_google_street_view must be updated to point back to the original street_view_platform_interface package from pub.dev instead of the forked version. This will ensure that the main package remains consistent with its upstream dependencies. Also remove the
"publish_to: none"entry which I added to the pubspec.yaml, in order to build a working workaround.I believe these changes will improve the package's compatibility with current Flutter and Dart ecosystems, while maintaining backward compatibility for supported SDK versions.
Thank you for considering this contribution. Please let me know if there are additional adjustments needed!
Best regards,
Aleks