-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Starting example
on a KDE Linux: "MissingPluginException: No implementation found for method init on channel yaru_window"
#903
Comments
example
on Linux: "MissingPluginException: No implementation found for method init on channel yaru_window"example
on a KDE Linux: "MissingPluginException: No implementation found for method init on channel yaru_window"
yes this is a problem with the recent flutter update in stable to 3.22, see (as a local fix you can switch to flutter 3.19.5) |
I don't have the time and knowledge to figure out if and how this can be fixed in diff --git a/example/linux/my_application.cc b/example/linux/my_application.cc
index 0689a240..6257fa03 100644
--- a/example/linux/my_application.cc
+++ b/example/linux/my_application.cc
@@ -53,16 +53,16 @@ static void my_application_activate(GApplication* application) {
gtk_window_set_geometry_hints(window, nullptr, &geometry_min, GDK_HINT_MIN_SIZE);
gtk_window_set_default_size(window, 700, 720);
+ gtk_widget_show(GTK_WIDGET(window));
g_autoptr(FlDartProject) project = fl_dart_project_new();
fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments);
FlView* view = fl_view_new(project);
+ gtk_widget_show(GTK_WIDGET(view));
gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view));
fl_register_plugins(FL_PLUGIN_REGISTRY(view));
- gtk_widget_show(GTK_WIDGET(view));
- gtk_widget_show(GTK_WIDGET(window));
gtk_widget_grab_focus(GTK_WIDGET(view));
}
diff --git a/example/pubspec.yaml b/example/pubspec.yaml
index afdf5a1c..9a6d90b2 100644
--- a/example/pubspec.yaml
+++ b/example/pubspec.yaml
@@ -13,7 +13,6 @@ dependencies:
flutter:
sdk: flutter
flutter_highlight: ^0.7.0
- handy_window: ^0.3.1
http: ^1.1.0
path: ^1.8.3
provider: ^6.0.2 We'd lose the rounded corners, though (I'm not sure why the top corners are affected as well): |
This would be a real visual downgrade :( @robert-ancell could you help us out here? 🙏 |
Some |
On Garuda Linux (Arch-deriv distro) with KDE and all deps installed needed for GTK 2-4 apps:
I F5 up the
example/lib/main.dart
in my fully-setup-and-functioning-for-Flutter VSCodium and the exceptionMissingPluginException (MissingPluginException(No implementation found for method init on channel yaru_window))
comes up in the firstmain
line, namely:The good news: I can remove that line and the app runs fine, of course without the fancy replacement title bar.
So as far as my needs go, you can Close this Issue anytime! But now it's here for whoever else may run into this and search for it. Plus you may be interested what might happen on (certain) Linux-but-non-Ubuntu/non-Gnome native runs =)
I'd be curious, too, to learn what exactly might be missing in my local Linux setup!
Here's the full Debug Console output:
The text was updated successfully, but these errors were encountered: