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
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