bitsdojo / bitsdojo_window

A Flutter package that makes it easy to customize and work with your Flutter desktop app window.
http://www.youtube.com/watch?v=bee2AHQpGK4
MIT License
815 stars 229 forks source link

Callback for when the Window is visible; #136

Open alesimula opened 2 years ago

alesimula commented 2 years ago

Hello, would it be possible to have a callback that gets executed when the UI is visible? Something maybe like appWindow.doWhenWindowVisible(VoidCallback callback) ?

I need to do some heavy computation on an isolate I have started on main(), but only when the UI is loaded (apparently, disk writes on isolates can hang the UI thread); appWindow.isVisible works, but it seems there is no way to listen for when this value is updated