Add debug property for onPointerHover (#96555)
This commit is contained in:
@@ -6135,6 +6135,7 @@ class Listener extends SingleChildRenderObjectWidget {
|
||||
if (onPointerDown != null) 'down',
|
||||
if (onPointerMove != null) 'move',
|
||||
if (onPointerUp != null) 'up',
|
||||
if (onPointerHover != null) 'hover',
|
||||
if (onPointerCancel != null) 'cancel',
|
||||
if (onPointerSignal != null) 'signal',
|
||||
];
|
||||
|
||||
@@ -406,6 +406,7 @@ void main() {
|
||||
onPointerDown: (PointerDownEvent event) {},
|
||||
onPointerUp: (PointerUpEvent event) {},
|
||||
onPointerMove: (PointerMoveEvent event) {},
|
||||
onPointerHover: (PointerHoverEvent event) {},
|
||||
onPointerCancel: (PointerCancelEvent event) {},
|
||||
onPointerSignal: (PointerSignalEvent event) {},
|
||||
behavior: HitTestBehavior.opaque,
|
||||
@@ -422,7 +423,7 @@ void main() {
|
||||
'constraints: MISSING',
|
||||
'size: MISSING',
|
||||
'behavior: opaque',
|
||||
'listeners: down, move, up, cancel, signal',
|
||||
'listeners: down, move, up, hover, cancel, signal',
|
||||
]);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user