apple_maps_flutter
apple_maps_flutter copied to clipboard
The method 'hashValues' isn't defined
Describe the bug Error: The method 'hashValues' isn't defined for the class 'InfoWindow'. after flutter upgrade to 3.27 To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
- Device: [e.g. iPhone15 Pro]
- Version [e.g. 18.2]
flutter doctor
Please add the flutter doctor output.
Object.hash may be enough to replace the legacy hashValues method
Here is the PR where this migration was done for flutter/flutter packages.
Please let us know when it’s live on pub.dev!
I forked and replaced the hashValues. Try using this. https://github.com/Anjula/apple_maps_flutter
apple_maps_flutter:
git:
url: https://github.com/Anjula/apple_maps_flutter.git
ref: cb853b3f3b86b3453559bf35f632696bb0357234
We’re using platform_maps_flutter unfortunately, so this is no option for us.
@xonaman
I think you can add a dependency override for the apple_maps_flutter dependency and it should work.
e.g.
dependency_overrides:
apple_maps_flutter:
git:
url: https://github.com/Anjula/apple_maps_flutter.git
ref: cb853b3f3b86b3453559bf35f632696bb0357234
@ChrisMarxDev looks like it’s working, thanks!
I forked and replaced the hashValues. Try using this. https://github.com/Anjula/apple_maps_flutter
apple_maps_flutter: git: url: https://github.com/Anjula/apple_maps_flutter.git ref: cb853b3f3b86b3453559bf35f632696bb0357234
https://github.com/albert-heijn-technology/apple_maps_flutter/issues/64 Can you help me take a look at this issue? Thank you
Your URL is not compatible, you must first have a dependency in pubspec.yaml, broo