Unverified Commit 6bb58221 authored by Kate Lovett's avatar Kate Lovett Committed by GitHub

Remove deprecated [PointerEnterEvent, PointerExitEvent].fromHoverEvent (#72395)

parent dc80d499
...@@ -11,6 +11,29 @@ ...@@ -11,6 +11,29 @@
version: 1 version: 1
transforms: 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 # Changes made in https://github.com/flutter/flutter/pull/41859
- title: 'Remove brightness' - title: 'Remove brightness'
date: 2020-12-10 date: 2020-12-10
......
...@@ -1222,15 +1222,6 @@ class PointerEnterEvent extends PointerEvent with _PointerEventDescription, _Cop ...@@ -1222,15 +1222,6 @@ class PointerEnterEvent extends PointerEvent with _PointerEventDescription, _Cop
embedderId: embedderId, 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]. /// Creates an enter event from a [PointerEvent].
/// ///
/// This is used by the [MouseTracker] to synthesize enter events. /// This is used by the [MouseTracker] to synthesize enter events.
...@@ -1397,15 +1388,6 @@ class PointerExitEvent extends PointerEvent with _PointerEventDescription, _Copy ...@@ -1397,15 +1388,6 @@ class PointerExitEvent extends PointerEvent with _PointerEventDescription, _Copy
embedderId: embedderId, 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]. /// Creates an exit event from a [PointerEvent].
/// ///
/// This is used by the [MouseTracker] to synthesize exit events. /// This is used by the [MouseTracker] to synthesize exit events.
......
// 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());
}
// 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());
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment