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
6bb58221
Unverified
Commit
6bb58221
authored
Dec 17, 2020
by
Kate Lovett
Committed by
GitHub
Dec 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove deprecated [PointerEnterEvent, PointerExitEvent].fromHoverEvent (#72395)
parent
dc80d499
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
18 deletions
+49
-18
fix_data.yaml
packages/flutter/lib/fix_data.yaml
+23
-0
events.dart
packages/flutter/lib/src/gestures/events.dart
+0
-18
gestures.dart
packages/flutter/test_fixes/gestures.dart
+13
-0
gestures.dart.expect
packages/flutter/test_fixes/gestures.dart.expect
+13
-0
No files found.
packages/flutter/lib/fix_data.yaml
View file @
6bb58221
...
...
@@ -11,6 +11,29 @@
version
:
1
transforms
:
# Changes made in https://github.com/flutter/flutter/pull/28602
-
title
:
'
Rename
to
fromMouseEvent'
date
:
2020-12-15
element
:
uris
:
[
'
gestures.dart'
]
constructor
:
'
fromHoverEvent'
inClass
:
'
PointerEnterEvent'
changes
:
-
kind
:
'
rename'
newName
:
'
fromMouseEvent'
# Changes made in https://github.com/flutter/flutter/pull/28602
-
title
:
'
Rename
to
fromMouseEvent'
date
:
2020-12-15
element
:
uris
:
[
'
gestures.dart'
]
constructor
:
'
fromHoverEvent'
inClass
:
'
PointerExitEvent'
changes
:
-
kind
:
'
rename'
newName
:
'
fromMouseEvent'
# Changes made in https://github.com/flutter/flutter/pull/41859
-
title
:
'
Remove
brightness'
date
:
2020-12-10
...
...
packages/flutter/lib/src/gestures/events.dart
View file @
6bb58221
...
...
@@ -1222,15 +1222,6 @@ class PointerEnterEvent extends PointerEvent with _PointerEventDescription, _Cop
embedderId:
embedderId
,
);
/// Creates an enter event from a [PointerHoverEvent].
///
/// Deprecated. Please use [PointerEnterEvent.fromMouseEvent] instead.
@Deprecated
(
'Use PointerEnterEvent.fromMouseEvent instead. '
'This feature was deprecated after v1.4.3.'
)
factory
PointerEnterEvent
.
fromHoverEvent
(
PointerHoverEvent
event
)
=>
PointerEnterEvent
.
fromMouseEvent
(
event
);
/// Creates an enter event from a [PointerEvent].
///
/// This is used by the [MouseTracker] to synthesize enter events.
...
...
@@ -1397,15 +1388,6 @@ class PointerExitEvent extends PointerEvent with _PointerEventDescription, _Copy
embedderId:
embedderId
,
);
/// Creates an enter event from a [PointerHoverEvent].
///
/// Deprecated. Please use [PointerExitEvent.fromMouseEvent] instead.
@Deprecated
(
'Use PointerExitEvent.fromMouseEvent instead. '
'This feature was deprecated after v1.4.3.'
)
factory
PointerExitEvent
.
fromHoverEvent
(
PointerHoverEvent
event
)
=>
PointerExitEvent
.
fromMouseEvent
(
event
);
/// Creates an exit event from a [PointerEvent].
///
/// This is used by the [MouseTracker] to synthesize exit events.
...
...
packages/flutter/test_fixes/gestures.dart
0 → 100644
View file @
6bb58221
// 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
());
}
packages/flutter/test_fixes/gestures.dart.expect
0 → 100644
View file @
6bb58221
// 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());
}
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