build: Use libhandy for linux desktop again

pull/999/head
krille-chan 11 months ago
parent f6c6898fb6
commit 6349afae2b
No known key found for this signature in database

@ -12,6 +12,7 @@
#include <file_selector_linux/file_selector_plugin.h>
#include <flutter_secure_storage_linux/flutter_secure_storage_linux_plugin.h>
#include <flutter_webrtc/flutter_web_r_t_c_plugin.h>
#include <handy_window/handy_window_plugin.h>
#include <pasteboard/pasteboard_plugin.h>
#include <record_linux/record_linux_plugin.h>
#include <sqlcipher_flutter_libs/sqlite3_flutter_libs_plugin.h>
@ -37,6 +38,9 @@ void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar) flutter_webrtc_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "FlutterWebRTCPlugin");
flutter_web_r_t_c_plugin_register_with_registrar(flutter_webrtc_registrar);
g_autoptr(FlPluginRegistrar) handy_window_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "HandyWindowPlugin");
handy_window_plugin_register_with_registrar(handy_window_registrar);
g_autoptr(FlPluginRegistrar) pasteboard_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "PasteboardPlugin");
pasteboard_plugin_register_with_registrar(pasteboard_registrar);

@ -9,6 +9,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
file_selector_linux
flutter_secure_storage_linux
flutter_webrtc
handy_window
pasteboard
record_linux
sqlcipher_flutter_libs

@ -61,17 +61,18 @@ static void my_application_activate(GApplication* application) {
}
gtk_window_set_default_size(window, 864, 680);
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(window));
gtk_widget_show(GTK_WIDGET(view));
gtk_widget_grab_focus(GTK_WIDGET(view));
}

@ -840,6 +840,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.0.0"
handy_window:
dependency: "direct main"
description:
name: handy_window
sha256: "56b813e58a68b0ee2ab22051400b8b1f1b5cfe88b8cd32288623defb3926245a"
url: "https://pub.dev"
source: hosted
version: "0.4.0"
highlighter:
dependency: transitive
description:

@ -54,6 +54,7 @@ dependencies:
future_loading_dialog: ^0.3.0
geolocator: ^7.6.2
go_router: ^13.1.0
handy_window: ^0.4.0
hive: ^2.2.3
hive_flutter: ^1.1.0
html: ^0.15.4

Loading…
Cancel
Save