jiusanzhou / flutter_floatwing

A Flutter plugin that makes it easier to make floating/overlay window for Android with pure Flutter. 一个可以用纯粹的Flutter来开发Android浮动窗口的插件。
Other
169 stars 28 forks source link

EventType.WindowDestroy returned data is null #16

Open psovit opened 1 year ago

psovit commented 1 year ago

The WindowDestroy event which gets called when closing a window is not returning any value in the data i.e. forceClose value.

I am listening to the event in this manner: _window?.on(EventType.WindowDestroy, (Window window, dynamic data)

The event call gets notified but data is empty.

Also seeing an error in the console:

W/FlutterJNI(17960): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. 
Could not send. Channel: im.zoe.labs/flutter_floatwing/window_msg. Response ID: 9