Closed chentianxin closed 3 years ago
No matter how I trigger the delete event, it's useless
void initState() { super.initState(); html.document.addEventListener('visibilitychange', _webVisibilitychange); } void dispose() { super.dispose(); html.document.removeEventListener('visibilitychange', _webVisibilitychange); } void _webVisibilitychange(html.Event event) { print(event); print(mounted); }
Thanks for the report! In browser, it will use dart:html and behave correctly. Elsewhere it's not expected to work.
No matter how I trigger the delete event, it's useless