Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions windows/window_manager_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ void WindowManagerPlugin::_EmitEvent(std::string eventName) {
flutter::EncodableMap args = flutter::EncodableMap();
args[flutter::EncodableValue("eventName")] =
flutter::EncodableValue(eventName);
//add this to update channel
channel = std::make_unique<flutter::MethodChannel<flutter::EncodableValue>>(
registrar->messenger(), "window_manager",
&flutter::StandardMethodCodec::GetInstance());
//
channel->InvokeMethod("onEvent",
std::make_unique<flutter::EncodableValue>(args));
}
Expand Down