gestures.dart.expect 3.72 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.fromMouseEvent(PointerHoverEvent());

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

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

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