apple_maps_flutter icon indicating copy to clipboard operation
apple_maps_flutter copied to clipboard

The method 'hashValues' isn't defined

Open fatihdurmaz opened this issue 11 months ago • 8 comments

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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. 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.

fatihdurmaz avatar Dec 16 '24 12:12 fatihdurmaz

Object.hash may be enough to replace the legacy hashValues method

mikklfr avatar Dec 16 '24 17:12 mikklfr

Here is the PR where this migration was done for flutter/flutter packages.

praiaBarryTolnas avatar Dec 17 '24 23:12 praiaBarryTolnas

Please let us know when it’s live on pub.dev!

xonaman avatar Dec 18 '24 00:12 xonaman

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

Anjula avatar Dec 18 '24 07:12 Anjula

We’re using platform_maps_flutter unfortunately, so this is no option for us.

xonaman avatar Dec 18 '24 12:12 xonaman

@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 avatar Dec 18 '24 12:12 ChrisMarxDev

@ChrisMarxDev looks like it’s working, thanks!

xonaman avatar Dec 18 '24 12:12 xonaman

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

winter-tech avatar Dec 19 '24 08:12 winter-tech

Your URL is not compatible, you must first have a dependency in pubspec.yaml, broo

wahyualif23014 avatar Jun 12 '25 13:06 wahyualif23014