flutter_reorderable_list icon indicating copy to clipboard operation
flutter_reorderable_list copied to clipboard

VerticalPointerState class fails with

Open seachellemz opened this issue 5 years ago • 1 comments

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;
    });
  }

seachellemz avatar Sep 29 '20 00:09 seachellemz

You are right, it worked now, thanks!

renenucci avatar Feb 02 '21 02:02 renenucci