When I click a different window in my desktop manager, my flutter desktop app is no longer the active / focused window (title bar goes grey).
How can I listen for this event?
I've tried a MouseRegion
but it seems that onExit
isn't fired when the mouse leaves the window.
I'm specifically looking for a Linux and Windows solution but would love something that also works on Mac.