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

VerticalPointerState class fails with #22

Open
seachellemz opened this issue Sep 29, 2020 · 1 comment
Open

VerticalPointerState class fails with #22

seachellemz opened this issue Sep 29, 2020 · 1 comment

Comments

@seachellemz
Copy link

I believe this component broke with an upgrade to Dart/Flutter. I am running with the following configuration:

Flutter 1.22.0-10.0.pre.380 • channel master • https://github.com/flutter/flutter.git
Framework • revision ec40df9576 (3 days ago) • 2020-09-25 21:27:22 -0700
Engine • revision 3a73d073c8
Tools • Dart 2.11.0 (build 2.11.0-161.0.dev)

The constructor for the MultiDragPointerState now requires two parameters. The flutter_reorderable_list component as coded, was/is only passing in one parameter. I was able to ge this to work by simply passing in a PointerDeviceKind of "unknown".

class _VerticalPointerState extends MultiDragPointerState {
  //TEMPORARY FIX
  _VerticalPointerState(Offset initialPosition) : super(initialPosition,PointerDeviceKind.unknown) {
    _resolveTimer = Timer(Duration(milliseconds: 150), () {
      resolve(GestureDisposition.accepted);
      _resolveTimer = null;
    });
  }
@renenucci
Copy link

You are right, it worked now, thanks!

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

2 participants