Add debug property for onPointerHover (#96555)

This commit is contained in:
Marcel Kirchhoff
2022-01-13 09:30:15 +01:00
committed by GitHub
parent 4d5c0264d9
commit 15cdaff03c
2 changed files with 3 additions and 1 deletions

View File

@@ -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',
];

View File

@@ -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',
]);
});
}