window_manager icon indicating copy to clipboard operation
window_manager copied to clipboard

The example crashes on linux with flutter 3.22

Open madadam opened this issue 1 year ago • 3 comments

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.

madadam avatar May 14 '24 12:05 madadam

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

madadam avatar May 14 '24 13:05 madadam

I have the same problem, the workaround works on my side but you see that this page will be reopened on kde plasma

CodeDoctorDE avatar May 18 '24 12:05 CodeDoctorDE

Likely caused by flutter/engine#50754.

GZGavinZhao avatar May 27 '24 23:05 GZGavinZhao