Add support for various mouse APIs, useMouseOver
, 'useMouseOffset', etc
#206
Labels
enhancement
New feature or request
useMouseOver
, 'useMouseOffset', etc
#206
Is your feature request related to a problem? Please describe.
It's cumbersome to manually create desktop effects for the mouse cursor. We need to either use a StatefulWidget w/ MouseRegion widget 2 event listeners, and an internal
_isMouseDown
bool, or some combination of nested Build widgets.Similarly, getting the mouse position is a fairly verbose process of using MouseRegion, some local Offset, and maybe a globalToLocal call on the context.
Describe the solution you'd like
bool isMouseOver = useMouseOver();
Offset mousePos = useMouseOffset();
Offset localMousePos = useMouseOffset(local: true);
The text was updated successfully, but these errors were encountered: