Skip to content

Commit 2291c74

Browse files
committed
feat: add desktop_webview_window package from GitHub Predidit/linux_webview_window
1 parent 021c389 commit 2291c74

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

linux/flutter/generated_plugin_registrant.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@
66

77
#include "generated_plugin_registrant.h"
88

9+
#include <desktop_webview_window/desktop_webview_window_plugin.h>
910
#include <dynamic_color/dynamic_color_plugin.h>
1011
#include <file_selector_linux/file_selector_plugin.h>
1112
#include <screen_retriever_linux/screen_retriever_linux_plugin.h>
1213
#include <url_launcher_linux/url_launcher_plugin.h>
1314
#include <window_manager/window_manager_plugin.h>
1415

1516
void fl_register_plugins(FlPluginRegistry* registry) {
17+
g_autoptr(FlPluginRegistrar) desktop_webview_window_registrar =
18+
fl_plugin_registry_get_registrar_for_plugin(registry, "DesktopWebviewWindowPlugin");
19+
desktop_webview_window_plugin_register_with_registrar(desktop_webview_window_registrar);
1620
g_autoptr(FlPluginRegistrar) dynamic_color_registrar =
1721
fl_plugin_registry_get_registrar_for_plugin(registry, "DynamicColorPlugin");
1822
dynamic_color_plugin_register_with_registrar(dynamic_color_registrar);

linux/flutter/generated_plugins.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#
44

55
list(APPEND FLUTTER_PLUGIN_LIST
6+
desktop_webview_window
67
dynamic_color
78
file_selector_linux
89
screen_retriever_linux

pubspec.lock

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,15 @@ packages:
281281
url: "https://pub.flutter-io.cn"
282282
source: hosted
283283
version: "0.7.11"
284+
desktop_webview_window:
285+
dependency: "direct main"
286+
description:
287+
path: "."
288+
ref: HEAD
289+
resolved-ref: b107a03068b8c4249cec4a3b159d56f1326103c5
290+
url: "https://github.com/Predidit/linux_webview_window.git"
291+
source: git
292+
version: "0.2.4"
284293
device_info_plus:
285294
dependency: "direct main"
286295
description:

pubspec.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ dependencies:
6868
window_manager: ^0.5.0
6969
gif_view: ^1.0.3
7070
cupertino_icons: ^1.0.8
71+
desktop_webview_window:
72+
git: https://github.com/Predidit/linux_webview_window.git
7173

7274
dev_dependencies:
7375
flutter_test:

0 commit comments

Comments
 (0)