Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
0f6244fa
Unverified
Commit
0f6244fa
authored
Jun 17, 2022
by
Alexandre Ardhuin
Committed by
GitHub
Jun 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export public API types from gestures/*.dart library (#105864)
parent
0cdbe1fd
Changes
32
Show whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
108 additions
and
37 deletions
+108
-37
binding.dart
packages/flutter/lib/src/gestures/binding.dart
+10
-0
converter.dart
packages/flutter/lib/src/gestures/converter.dart
+4
-0
drag.dart
packages/flutter/lib/src/gestures/drag.dart
+2
-1
drag_details.dart
packages/flutter/lib/src/gestures/drag_details.dart
+4
-3
eager.dart
packages/flutter/lib/src/gestures/eager.dart
+4
-3
events.dart
packages/flutter/lib/src/gestures/events.dart
+5
-0
force_press.dart
packages/flutter/lib/src/gestures/force_press.dart
+5
-1
gesture_settings.dart
packages/flutter/lib/src/gestures/gesture_settings.dart
+3
-0
hit_test.dart
packages/flutter/lib/src/gestures/hit_test.dart
+6
-0
long_press.dart
packages/flutter/lib/src/gestures/long_press.dart
+6
-2
monodrag.dart
packages/flutter/lib/src/gestures/monodrag.dart
+10
-2
multidrag.dart
packages/flutter/lib/src/gestures/multidrag.dart
+7
-1
multitap.dart
packages/flutter/lib/src/gestures/multitap.dart
+5
-2
pointer_router.dart
packages/flutter/lib/src/gestures/pointer_router.dart
+4
-1
pointer_signal_resolver.dart
...ges/flutter/lib/src/gestures/pointer_signal_resolver.dart
+2
-0
recognizer.dart
packages/flutter/lib/src/gestures/recognizer.dart
+8
-2
resampler.dart
packages/flutter/lib/src/gestures/resampler.dart
+2
-0
scale.dart
packages/flutter/lib/src/gestures/scale.dart
+7
-3
tap.dart
packages/flutter/lib/src/gestures/tap.dart
+8
-1
team.dart
packages/flutter/lib/src/gestures/team.dart
+2
-0
velocity_tracker.dart
packages/flutter/lib/src/gestures/velocity_tracker.dart
+1
-1
editable.dart
packages/flutter/lib/src/rendering/editable.dart
+0
-1
mouse_tracker.dart
packages/flutter/lib/src/rendering/mouse_tracker.dart
+0
-2
object.dart
packages/flutter/lib/src/rendering/object.dart
+0
-1
paragraph.dart
packages/flutter/lib/src/rendering/paragraph.dart
+0
-2
proxy_box.dart
packages/flutter/lib/src/rendering/proxy_box.dart
+0
-2
sliver.dart
packages/flutter/lib/src/rendering/sliver.dart
+0
-1
ticker.dart
packages/flutter/lib/src/scheduler/ticker.dart
+3
-1
events_test.dart
packages/flutter/test/gestures/events_test.dart
+0
-1
hit_test_test.dart
packages/flutter/test/gestures/hit_test_test.dart
+0
-1
pointer_router_test.dart
packages/flutter/test/gestures/pointer_router_test.dart
+0
-1
pointer_signal_resolver_test.dart
...s/flutter/test/gestures/pointer_signal_resolver_test.dart
+0
-1
No files found.
packages/flutter/lib/src/gestures/binding.dart
View file @
0f6244fa
...
...
@@ -19,6 +19,16 @@ import 'pointer_router.dart';
import
'pointer_signal_resolver.dart'
;
import
'resampler.dart'
;
export
'dart:ui'
show
Offset
;
export
'package:flutter/foundation.dart'
show
DiagnosticsNode
,
InformationCollector
;
export
'arena.dart'
show
GestureArenaManager
;
export
'events.dart'
show
PointerEvent
;
export
'hit_test.dart'
show
HitTestEntry
,
HitTestTarget
,
HitTestResult
;
export
'pointer_router.dart'
show
PointerRouter
;
export
'pointer_signal_resolver.dart'
show
PointerSignalResolver
;
typedef
_HandleSampleTimeChangedCallback
=
void
Function
();
/// Class that implements clock used for sampling.
...
...
packages/flutter/lib/src/gestures/converter.dart
View file @
0f6244fa
...
...
@@ -7,6 +7,10 @@ import 'dart:ui' as ui show PointerData, PointerChange, PointerSignalKind;
import
'events.dart'
;
export
'dart:ui'
show
PointerData
;
export
'events.dart'
show
PointerEvent
;
// Add `kPrimaryButton` to [buttons] when a pointer of certain devices is down.
//
// TODO(tongmu): This patch is supposed to be done by embedders. Patching it
...
...
packages/flutter/lib/src/gestures/drag.dart
View file @
0f6244fa
...
...
@@ -2,9 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'drag_details.dart'
;
export
'drag_details.dart'
show
DragEndDetails
,
DragUpdateDetails
;
/// Interface for objects that receive updates about drags.
///
/// This interface is used in various ways. For example,
...
...
packages/flutter/lib/src/gestures/drag_details.dart
View file @
0f6244fa
...
...
@@ -2,13 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'dart:ui'
show
Offset
,
PointerDeviceKind
;
import
'package:flutter/foundation.dart'
;
import
'velocity_tracker.dart'
;
export
'dart:ui'
show
Offset
,
PointerDeviceKind
;
export
'velocity_tracker.dart'
show
Velocity
;
/// Details object for callbacks that use [GestureDragDownCallback].
///
/// See also:
...
...
packages/flutter/lib/src/gestures/eager.dart
View file @
0f6244fa
...
...
@@ -2,11 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'arena.dart'
;
import
'events.dart'
;
import
'recognizer.dart'
;
export
'dart:ui'
show
PointerDeviceKind
;
export
'events.dart'
show
PointerDownEvent
,
PointerEvent
;
/// A gesture recognizer that eagerly claims victory in all gesture arenas.
///
/// This is typically passed in [AndroidView.gestureRecognizers] in order to immediately dispatch
...
...
packages/flutter/lib/src/gestures/events.dart
View file @
0f6244fa
...
...
@@ -13,6 +13,11 @@ import 'gesture_settings.dart';
export
'dart:ui'
show
Offset
,
PointerDeviceKind
;
export
'package:flutter/foundation.dart'
show
DiagnosticPropertiesBuilder
;
export
'package:vector_math/vector_math_64.dart'
show
Matrix4
;
export
'gesture_settings.dart'
show
DeviceGestureSettings
;
/// The bit of [PointerEvent.buttons] that corresponds to a cross-device
/// behavior of "primary operation".
///
...
...
packages/flutter/lib/src/gestures/force_press.dart
View file @
0f6244fa
...
...
@@ -3,10 +3,14 @@
// found in the LICENSE file.
import
'package:flutter/foundation.dart'
show
clampDouble
;
import
'arena.dart'
;
import
'events.dart'
;
import
'recognizer.dart'
;
export
'dart:ui'
show
Offset
,
PointerDeviceKind
;
export
'events.dart'
show
PointerDownEvent
,
PointerEvent
;
enum
_ForceState
{
// No pointer has touched down and the detector is ready for a pointer down to occur.
ready
,
...
...
packages/flutter/lib/src/gestures/gesture_settings.dart
View file @
0f6244fa
...
...
@@ -3,8 +3,11 @@
// found in the LICENSE file.
import
'dart:ui'
as
ui
;
import
'package:flutter/foundation.dart'
;
export
'dart:ui'
show
FlutterView
;
/// The device specific gesture settings scaled into logical pixels.
///
/// This configuration can be retrieved from the window, or more commonly from a
...
...
packages/flutter/lib/src/gestures/hit_test.dart
View file @
0f6244fa
...
...
@@ -8,6 +8,12 @@ import 'package:vector_math/vector_math_64.dart';
import
'events.dart'
;
export
'dart:ui'
show
Offset
;
export
'package:vector_math/vector_math_64.dart'
show
Matrix4
;
export
'events.dart'
show
PointerEvent
;
/// An object that can hit-test pointers.
abstract
class
HitTestable
{
// This class is intended to be used as an interface, and should not be
...
...
packages/flutter/lib/src/gestures/long_press.dart
View file @
0f6244fa
...
...
@@ -2,13 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'arena.dart'
;
import
'constants.dart'
;
import
'events.dart'
;
import
'recognizer.dart'
;
import
'velocity_tracker.dart'
;
export
'dart:ui'
show
Offset
,
PointerDeviceKind
;
export
'arena.dart'
show
GestureDisposition
;
export
'events.dart'
show
PointerDownEvent
,
PointerEvent
;
export
'velocity_tracker.dart'
show
Velocity
;
/// Callback signature for [LongPressGestureRecognizer.onLongPressDown].
///
/// Called when a pointer that might cause a long-press has contacted the
...
...
packages/flutter/lib/src/gestures/monodrag.dart
View file @
0f6244fa
...
...
@@ -3,15 +3,23 @@
// found in the LICENSE file.
import
'package:flutter/foundation.dart'
;
import
'package:vector_math/vector_math_64.dart'
;
import
'arena.dart'
;
import
'constants.dart'
;
import
'drag_details.dart'
;
import
'events.dart'
;
import
'recognizer.dart'
;
import
'velocity_tracker.dart'
;
export
'dart:ui'
show
PointerDeviceKind
;
export
'package:flutter/foundation.dart'
show
DiagnosticPropertiesBuilder
;
export
'drag.dart'
show
DragEndDetails
,
DragUpdateDetails
;
export
'drag_details.dart'
show
DragDownDetails
,
DragStartDetails
,
DragUpdateDetails
,
GestureDragDownCallback
,
GestureDragStartCallback
,
GestureDragUpdateCallback
;
export
'events.dart'
show
PointerDownEvent
,
PointerEvent
,
PointerPanZoomStartEvent
;
export
'recognizer.dart'
show
DragStartBehavior
;
export
'velocity_tracker.dart'
show
VelocityEstimate
,
VelocityTracker
;
enum
_DragState
{
ready
,
possible
,
...
...
packages/flutter/lib/src/gestures/multidrag.dart
View file @
0f6244fa
...
...
@@ -13,10 +13,16 @@ import 'constants.dart';
import
'drag.dart'
;
import
'drag_details.dart'
;
import
'events.dart'
;
import
'gesture_settings.dart'
;
import
'recognizer.dart'
;
import
'velocity_tracker.dart'
;
export
'dart:ui'
show
Offset
,
PointerDeviceKind
;
export
'arena.dart'
show
GestureDisposition
;
export
'drag.dart'
show
Drag
;
export
'events.dart'
show
PointerDownEvent
;
export
'gesture_settings.dart'
show
DeviceGestureSettings
;
/// Signature for when [MultiDragGestureRecognizer] recognizes the start of a drag gesture.
typedef
GestureMultiDragStartCallback
=
Drag
?
Function
(
Offset
position
);
...
...
packages/flutter/lib/src/gestures/multitap.dart
View file @
0f6244fa
...
...
@@ -3,17 +3,20 @@
// found in the LICENSE file.
import
'dart:async'
;
import
'package:vector_math/vector_math_64.dart'
;
import
'arena.dart'
;
import
'binding.dart'
;
import
'constants.dart'
;
import
'events.dart'
;
import
'gesture_settings.dart'
;
import
'pointer_router.dart'
;
import
'recognizer.dart'
;
import
'tap.dart'
;
export
'dart:ui'
show
Offset
,
PointerDeviceKind
;
export
'events.dart'
show
PointerDownEvent
;
export
'tap.dart'
show
GestureTapCancelCallback
,
GestureTapDownCallback
,
TapDownDetails
,
TapUpDetails
;
/// Signature for callback when the user has tapped the screen at the same
/// location twice in quick succession.
///
...
...
packages/flutter/lib/src/gestures/pointer_router.dart
View file @
0f6244fa
...
...
@@ -4,10 +4,13 @@
import
'package:flutter/foundation.dart'
;
import
'package:vector_math/vector_math_64.dart'
;
import
'events.dart'
;
export
'package:vector_math/vector_math_64.dart'
show
Matrix4
;
export
'events.dart'
show
PointerEvent
;
/// A callback that receives a [PointerEvent]
typedef
PointerRoute
=
void
Function
(
PointerEvent
event
);
...
...
packages/flutter/lib/src/gestures/pointer_signal_resolver.dart
View file @
0f6244fa
...
...
@@ -6,6 +6,8 @@ import 'package:flutter/foundation.dart';
import
'events.dart'
;
export
'events.dart'
show
PointerSignalEvent
;
/// The callback to register with a [PointerSignalResolver] to express
/// interest in a pointer signal event.
typedef
PointerSignalResolvedCallback
=
void
Function
(
PointerSignalEvent
event
);
...
...
packages/flutter/lib/src/gestures/recognizer.dart
View file @
0f6244fa
...
...
@@ -7,17 +7,23 @@ import 'dart:async';
import
'dart:collection'
;
import
'package:flutter/foundation.dart'
;
import
'package:vector_math/vector_math_64.dart'
;
import
'arena.dart'
;
import
'binding.dart'
;
import
'constants.dart'
;
import
'debug.dart'
;
import
'events.dart'
;
import
'gesture_settings.dart'
;
import
'pointer_router.dart'
;
import
'team.dart'
;
export
'dart:ui'
show
Offset
,
PointerDeviceKind
;
export
'package:flutter/foundation.dart'
show
DiagnosticPropertiesBuilder
;
export
'package:vector_math/vector_math_64.dart'
show
Matrix4
;
export
'arena.dart'
show
GestureDisposition
;
export
'events.dart'
show
PointerDownEvent
,
PointerEvent
,
PointerPanZoomStartEvent
;
export
'gesture_settings.dart'
show
DeviceGestureSettings
;
export
'pointer_router.dart'
show
PointerRouter
;
/// Generic signature for callbacks passed to
...
...
packages/flutter/lib/src/gestures/resampler.dart
View file @
0f6244fa
...
...
@@ -6,6 +6,8 @@ import 'dart:collection';
import
'events.dart'
;
export
'events.dart'
show
PointerEvent
;
/// A callback used by [PointerEventResampler.sample] and
/// [PointerEventResampler.stop] to process a resampled `event`.
typedef
HandleEventCallback
=
void
Function
(
PointerEvent
event
);
...
...
packages/flutter/lib/src/gestures/scale.dart
View file @
0f6244fa
...
...
@@ -4,14 +4,18 @@
import
'dart:math'
as
math
;
import
'package:vector_math/vector_math_64.dart'
;
import
'arena.dart'
;
import
'constants.dart'
;
import
'events.dart'
;
import
'recognizer.dart'
;
import
'velocity_tracker.dart'
;
export
'dart:ui'
show
Offset
,
PointerDeviceKind
;
export
'events.dart'
show
PointerDownEvent
,
PointerEvent
,
PointerPanZoomStartEvent
;
export
'recognizer.dart'
show
DragStartBehavior
;
export
'velocity_tracker.dart'
show
Velocity
;
/// The possible states of a [ScaleGestureRecognizer].
enum
_ScaleState
{
/// The recognizer is ready to start recognizing a gesture.
...
...
packages/flutter/lib/src/gestures/tap.dart
View file @
0f6244fa
...
...
@@ -4,13 +4,20 @@
import
'package:flutter/foundation.dart'
;
import
'package:vector_math/vector_math_64.dart'
show
Matrix4
;
import
'arena.dart'
;
import
'constants.dart'
;
import
'events.dart'
;
import
'recognizer.dart'
;
export
'dart:ui'
show
Offset
,
PointerDeviceKind
;
export
'package:flutter/foundation.dart'
show
DiagnosticPropertiesBuilder
;
export
'package:vector_math/vector_math_64.dart'
show
Matrix4
;
export
'arena.dart'
show
GestureDisposition
;
export
'events.dart'
show
PointerCancelEvent
,
PointerDownEvent
,
PointerEvent
,
PointerUpEvent
;
/// Details for [GestureTapDownCallback], such as position.
///
/// See also:
...
...
packages/flutter/lib/src/gestures/team.dart
View file @
0f6244fa
...
...
@@ -6,6 +6,8 @@
import
'arena.dart'
;
import
'binding.dart'
;
export
'arena.dart'
show
GestureArenaEntry
,
GestureArenaMember
;
class
_CombiningGestureArenaEntry
implements
GestureArenaEntry
{
_CombiningGestureArenaEntry
(
this
.
_combiner
,
this
.
_member
);
...
...
packages/flutter/lib/src/gestures/velocity_tracker.dart
View file @
0f6244fa
...
...
@@ -8,7 +8,7 @@ import 'package:flutter/foundation.dart';
import
'events.dart'
;
import
'lsq_solver.dart'
;
export
'dart:ui'
show
Offset
;
export
'dart:ui'
show
Offset
,
PointerDeviceKind
;
/// A velocity in two dimensions.
@immutable
...
...
packages/flutter/lib/src/rendering/editable.dart
View file @
0f6244fa
...
...
@@ -11,7 +11,6 @@ import 'package:flutter/foundation.dart';
import
'package:flutter/gestures.dart'
;
import
'package:flutter/semantics.dart'
;
import
'package:flutter/services.dart'
;
import
'package:vector_math/vector_math_64.dart'
;
import
'box.dart'
;
import
'custom_paint.dart'
;
...
...
packages/flutter/lib/src/rendering/mouse_tracker.dart
View file @
0f6244fa
...
...
@@ -14,8 +14,6 @@ import 'package:flutter/foundation.dart';
import
'package:flutter/gestures.dart'
;
import
'package:flutter/services.dart'
;
import
'package:vector_math/vector_math_64.dart'
show
Matrix4
;
import
'object.dart'
;
export
'package:flutter/services.dart'
show
...
...
packages/flutter/lib/src/rendering/object.dart
View file @
0f6244fa
...
...
@@ -10,7 +10,6 @@ import 'package:flutter/foundation.dart';
import
'package:flutter/gestures.dart'
;
import
'package:flutter/painting.dart'
;
import
'package:flutter/semantics.dart'
;
import
'package:vector_math/vector_math_64.dart'
;
import
'debug.dart'
;
import
'layer.dart'
;
...
...
packages/flutter/lib/src/rendering/paragraph.dart
View file @
0f6244fa
...
...
@@ -10,8 +10,6 @@ import 'package:flutter/foundation.dart';
import
'package:flutter/gestures.dart'
;
import
'package:flutter/semantics.dart'
;
import
'package:vector_math/vector_math_64.dart'
;
import
'box.dart'
;
import
'debug.dart'
;
import
'layer.dart'
;
...
...
packages/flutter/lib/src/rendering/proxy_box.dart
View file @
0f6244fa
...
...
@@ -10,8 +10,6 @@ import 'package:flutter/gestures.dart';
import
'package:flutter/semantics.dart'
;
import
'package:flutter/services.dart'
;
import
'package:vector_math/vector_math_64.dart'
;
import
'box.dart'
;
import
'layer.dart'
;
import
'layout_helper.dart'
;
...
...
packages/flutter/lib/src/rendering/sliver.dart
View file @
0f6244fa
...
...
@@ -6,7 +6,6 @@ import 'dart:math' as math;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/gestures.dart'
;
import
'package:vector_math/vector_math_64.dart'
;
import
'box.dart'
;
import
'debug.dart'
;
...
...
packages/flutter/lib/src/scheduler/ticker.dart
View file @
0f6244fa
...
...
@@ -8,7 +8,9 @@ import 'package:flutter/foundation.dart';
import
'binding.dart'
;
export
'package:flutter/foundation.dart'
show
DiagnosticsNode
,
VoidCallback
;
export
'dart:ui'
show
VoidCallback
;
export
'package:flutter/foundation.dart'
show
DiagnosticsNode
;
/// Signature for the callback passed to the [Ticker] class's constructor.
///
...
...
packages/flutter/test/gestures/events_test.dart
View file @
0f6244fa
...
...
@@ -3,7 +3,6 @@
// found in the LICENSE file.
import
'package:flutter/gestures.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:vector_math/vector_math_64.dart'
;
...
...
packages/flutter/test/gestures/hit_test_test.dart
View file @
0f6244fa
...
...
@@ -4,7 +4,6 @@
import
'package:flutter/gestures.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:vector_math/vector_math_64.dart'
;
void
main
(
)
{
test
(
'wrapped HitTestResult gets HitTestEntry added to wrapping HitTestResult'
,
()
async
{
...
...
packages/flutter/test/gestures/pointer_router_test.dart
View file @
0f6244fa
...
...
@@ -5,7 +5,6 @@
import
'package:flutter/foundation.dart'
;
import
'package:flutter/gestures.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:vector_math/vector_math_64.dart'
;
void
main
(
)
{
test
(
'Should route pointers'
,
()
{
...
...
packages/flutter/test/gestures/pointer_signal_resolver_test.dart
View file @
0f6244fa
...
...
@@ -4,7 +4,6 @@
import
'package:flutter/gestures.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:vector_math/vector_math_64.dart'
;
class
TestPointerSignalListener
{
TestPointerSignalListener
(
this
.
event
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment