window_manager
window_manager copied to clipboard
The example crashes on linux with flutter 3.22
In the latest version of flutter (3.22) the example crashes on linux. It seems that calling gtk_window_realize instead of gtk_window_show causes the subsequent plugin registration to fail, for some reason. This means that the documentation about making the app hidden at launch is also not correct anymore.
An ugly workaround it to show the window before registering the plugins and then hide it afterwards:
gtk_widget_show(GTK_WIDGET(window));
fl_register_plugins(FL_PLUGIN_REGISTRY(view));
gtk_widget_hide(GTK_WIDGET(window));
I have the same problem, the workaround works on my side but you see that this page will be reopened on kde plasma
Likely caused by flutter/engine#50754.