gestures.dart 3.1 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/gestures.dart';

void main() {
  // Change made in https://github.com/flutter/flutter/pull/28602
  final PointerEnterEvent enterEvent = PointerEnterEvent.fromHoverEvent(PointerHoverEvent());

  // Change made in https://github.com/flutter/flutter/pull/28602
  final PointerExitEvent exitEvent = PointerExitEvent.fromHoverEvent(PointerHoverEvent());
13 14 15 16

  // Changes made in https://github.com/flutter/flutter/pull/66043
  VelocityTracker tracker = VelocityTracker();
  tracker = VelocityTracker(PointerDeviceKind.mouse);
17
  tracker = VelocityTracker(error: '');
18 19 20 21

  // Changes made in https://github.com/flutter/flutter/pull/81858
  DragGestureRecognizer();
  DragGestureRecognizer(kind: PointerDeviceKind.touch);
22
  DragGestureRecognizer(error: '');
23 24
  VerticalDragGestureRecognizer();
  VerticalDragGestureRecognizer(kind: PointerDeviceKind.touch);
25
  VerticalDragGestureRecognizer(error: '');
26 27
  HorizontalDragGestureRecognizer();
  HorizontalDragGestureRecognizer(kind: PointerDeviceKind.touch);
28
  HorizontalDragGestureRecognizer(error: '');
29 30
  GestureRecognizer();
  GestureRecognizer(kind: PointerDeviceKind.touch);
31
  GestureRecognizer(error: '');
32 33
  OneSequenceGestureRecognizer();
  OneSequenceGestureRecognizer(kind: PointerDeviceKind.touch);
34
  OneSequenceGestureRecognizer(error: '');
35 36
  PrimaryPointerGestureRecognizer();
  PrimaryPointerGestureRecognizer(kind: PointerDeviceKind.touch);
37
  PrimaryPointerGestureRecognizer(error: '');
38 39
  EagerGestureRecognizer();
  EagerGestureRecognizer(kind: PointerDeviceKind.touch);
40
  EagerGestureRecognizer(error: '');
41 42
  ForcePressGestureRecognizer();
  ForcePressGestureRecognizer(kind: PointerDeviceKind.touch);
43
  ForcePressGestureRecognizer(error: '');
44 45
  LongPressGestureRecognizer();
  LongPressGestureRecognizer(kind: PointerDeviceKind.touch);
46
  LongPressGestureRecognizer(error: '');
47 48
  MultiDragGestureRecognizer();
  MultiDragGestureRecognizer(kind: PointerDeviceKind.touch);
49
  MultiDragGestureRecognizer(error: '');
50 51
  ImmediateMultiDragGestureRecognizer();
  ImmediateMultiDragGestureRecognizer(kind: PointerDeviceKind.touch);
52
  ImmediateMultiDragGestureRecognizer(error: '');
53 54
  HorizontalMultiDragGestureRecognizer();
  HorizontalMultiDragGestureRecognizer(kind: PointerDeviceKind.touch);
55
  HorizontalMultiDragGestureRecognizer(error: '');
56 57
  VerticalMultiDragGestureRecognizer();
  VerticalMultiDragGestureRecognizer(kind: PointerDeviceKind.touch);
58
  VerticalMultiDragGestureRecognizer(error: '');
59 60
  DelayedMultiDragGestureRecognizer();
  DelayedMultiDragGestureRecognizer(kind: PointerDeviceKind.touch);
61
  DelayedMultiDragGestureRecognizer(error: '');
62 63
  DoubleTapGestureRecognizer();
  DoubleTapGestureRecognizer(kind: PointerDeviceKind.touch);
64
  DoubleTapGestureRecognizer(error: '');
65 66
  MultiTapGestureRecognizer();
  MultiTapGestureRecognizer(kind: PointerDeviceKind.touch);
67
  MultiTapGestureRecognizer(error: '');
68 69
  ScaleGestureRecognizer();
  ScaleGestureRecognizer(kind: PointerDeviceKind.touch);
70
  ScaleGestureRecognizer(error: '');
71
}