Skip to content

Commit

Permalink
Adapt to flutter 1.22 api changes
Browse files Browse the repository at this point in the history
Signed-off-by: Julian Scheel <[email protected]>
  • Loading branch information
julianscheel committed Oct 2, 2020
1 parent 327f51e commit 952d0f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/flutter_reorderable_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,8 @@ class _DragProxyState extends State<_DragProxy> {
}

class _VerticalPointerState extends MultiDragPointerState {
_VerticalPointerState(Offset initialPosition) : super(initialPosition) {
_VerticalPointerState(Offset initialPosition, PointerDeviceKind kind)
: super(initialPosition, kind) {
_resolveTimer = Timer(Duration(milliseconds: 150), () {
resolve(GestureDisposition.accepted);
_resolveTimer = null;
Expand Down Expand Up @@ -749,7 +750,7 @@ class _VerticalPointerState extends MultiDragPointerState {
class _Recognizer extends MultiDragGestureRecognizer<_VerticalPointerState> {
@override
_VerticalPointerState createNewPointerState(PointerDownEvent event) {
return _VerticalPointerState(event.position);
return _VerticalPointerState(event.position, event.kind);
}

@override
Expand Down

0 comments on commit 952d0f6

Please sign in to comment.