Issue
I want to change the cursor pointer on hover a certain widget, but I can’t find how to achieve this.
Looking to this comment seems like they already have it for macOS, but I can’t find anything about how to implement.
How can I change my cursor on hover a widget?
Solution
There is a cursor
property on MouseRegion
, which controls what cursor is shown when the pointer is in the region. For instance:
MouseRegion(
cursor: SystemMouseCursors.text,
child: YourWidgetHere(),
)
Answered By – smorgan
Answer Checked By – Gilberto Lyons (FlutterFixes Admin)