bluefireteam / photo_view

📸 Easy to use yet very customizable zoomable image widget for Flutter, Photo View provides a gesture sensitive zoomable widget. Photo View is largely used to show interacive images and other stuff such as SVG.
MIT License
1.91k stars 548 forks source link

'PointerEvent' can't be assigned to the parameter type 'PointerDownEvent' #423

Closed luohao123 closed 3 years ago

luohao123 commented 3 years ago
flutter doctor                                                                                      1 master!?
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 2.3.0-13.0.pre.57, on Ubuntu 18.04.5 LTS 4.15.0-143-generic, locale en_HK.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.56.2)
[✓] Connected device (2 available)

• No issues found!

Seems the lastest broken.

muhgad commented 3 years ago

I have the same problem

Raphicci commented 3 years ago

This might be related to the new Flutter update 2.2, there is some breaking changes on Pointer events : https://flutter.dev/docs/release/breaking-changes/1-22-deprecations. Calling dart fix on the repo might fix it.

Khaoz-Topsy commented 3 years ago

I have the same issue, unfortunately @Raphicci the dart fix did not help. Going to downgrade Flutter to before 2.2 and try that

Khaoz-Topsy commented 3 years ago

You can get past this issue by using the beta channel for now. flutter channel beta & flutter upgrade

renancaraujo commented 3 years ago

Our releases officially support the beta channel only, but since this was supposed to be fixed by https://github.com/fireslime/photo_view/pull/420, you can depend directly on photoview's repository while it doesn't reach beta.

If we release a version supporting this on pub now, our score goes down.

  photo_view:
    git:
      url: git://github.com/fireslime/photo_view
      ref: 52685ab7beaf8a9107904bdb8a1590924015d016
dpedrinha commented 3 years ago

OK, I didn't understand what needs to be done to fix this problem. Do I need to change flutter to beta? Is that it?

Isn't the beta channel newer than the master?

Does it mean the flutter team is rolling back this change?

TheJulianJES commented 3 years ago

Use the following for now:

  photo_view:
    git:
      url: git://github.com/fireslime/photo_view
      ref: 52685ab7beaf8a9107904bdb8a1590924015d016

https://github.com/fireslime/photo_view/pull/427 reverted https://github.com/fireslime/photo_view/pull/420

renancaraujo commented 3 years ago

This should be fixed on 0.12.0: https://github.com/fireslime/photo_view/releases/tag/0.12.0

renancaraujo commented 3 years ago

Further discussions use #441.