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

App can't debug when colorpicker is added to the pubspec.yaml #56

Closed
dninet opened this issue Sep 8, 2021 · 3 comments
Closed

App can't debug when colorpicker is added to the pubspec.yaml #56

dninet opened this issue Sep 8, 2021 · 3 comments

Comments

@dninet
Copy link

dninet commented Sep 8, 2021

I get the following output, followed by the usual "BUILD FAILED"

../../../.pub-cache/hosted/pub.dartlang.org/flutter_colorpicker-0.5.0/lib/src/hsv_picker.dart:730:43: Error: The parameter 'event' of the method 'AlwaysWinPanGestureRecognizer.addAllowedPointer' has type 'PointerDownEvent', which does not match the corresponding type, 'PointerEvent', in the overridden method, 'DragGestureRecognizer.addAllowedPointer'.
 - 'PointerDownEvent' is from 'package:flutter/src/gestures/events.dart' ('../../../development/flutter/packages/flutter/lib/src/gestures/events.dart').
 - 'PointerEvent' is from 'package:flutter/src/gestures/events.dart' ('../../../development/flutter/packages/flutter/lib/src/gestures/events.dart').
Change to a supertype of 'PointerEvent', or, for a covariant parameter, a subtype.
  void addAllowedPointer(PointerDownEvent event) {
                                          ^

../../../development/flutter/packages/flutter/lib/src/gestures/monodrag.dart:256:8: Context: This is the overridden method ('addAllowedPointer').
  void addAllowedPointer(PointerEvent event) {

I've completely cleaned flutter and downloaded all packages after the error showed up. Didn't work.

@aldycool
Copy link

aldycool commented Sep 9, 2021

Hi, I think this happens due to flutter 2.5 (the latest flutter version as per writing). If you've just installed Flutter (or you've upgraded your existing installation), it is likely that you have upgraded to 2.5. To downgrade Flutter SDK is not easy, since they've removed the flutter version command. As of now, probably needs to uninstall + reinstall it (or use some kind of flutter version switcher like: https://github.com/leoafarias/fvm).

@mchome
Copy link
Owner

mchome commented Sep 9, 2021

Try using this:

dependencies:
  flutter_colorpicker:
    git:
      url: git://github.com/mchome/flutter_colorpicker.git

I will update the pub version asap.

@mchome
Copy link
Owner

mchome commented Sep 10, 2021

0.6.0 is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants