Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
luohao123 opened this issue May 20, 2021 · 9 comments
Closed
Labels
bug Something isn't working

Comments

@luohao123
Copy link

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.

@luohao123 luohao123 added the bug Something isn't working label May 20, 2021
@muhgad
Copy link

muhgad commented May 20, 2021

I have the same problem

@Raphicci
Copy link

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
Copy link

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
Copy link

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

@renancaraujo
Copy link
Member

renancaraujo commented May 25, 2021

Our releases officially support the beta channel only, but since this was supposed to be fixed by #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

@renancaraujo renancaraujo changed the title [BUG] /photo_view-0.11.1/lib/src/core/photo_view_gesture_detector.dart:106:29: Error: The argument type 'PointerEvent' can't be assigned to the parameter type 'PointerDownEvent'. ERROR: - 'PointerEvent' is from 'package:flutter/src/gestures/events.dart' ('/home/fagangjin/development/flutter/packages/flutter/lib/src/gestures/events.dart'). ERROR: - 'PointerDownEvent' is from 'package:flutter/src/gestures/events.dart' ('/home/fagangjin/development/flutter/packages/flutter/lib/src/gestures/events.dart'). ERROR: super.addAllowedPointer(event); ERROR: ^ 'PointerEvent' can't be assigned to the parameter type 'PointerDownEvent' May 30, 2021
@dpedrinha
Copy link

dpedrinha commented Jun 9, 2021

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
Copy link

Use the following for now:

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

#427 reverted #420

@renancaraujo
Copy link
Member

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

@renancaraujo
Copy link
Member

Further discussions use #441.

@bluefireteam bluefireteam locked as resolved and limited conversation to collaborators Jul 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants