Revert "build: Use libhandy for linux desktop again"

This reverts commit 6349afae2b.
This commit is contained in:
krille-chan 2024-04-07 15:20:21 +02:00
parent 6349afae2b
commit 6998c87b62
No known key found for this signature in database
5 changed files with 2 additions and 17 deletions

View file

@ -12,7 +12,6 @@
#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>
@ -38,9 +37,6 @@ 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);

View file

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

View file

@ -61,18 +61,17 @@ 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));
}

View file

@ -840,14 +840,6 @@ 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:

View file

@ -54,7 +54,6 @@ 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