基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。
chore: bump webview windows to env lifecycle refcount (#1733)
林晨b8a075b7b497
diff --git a/lib/webview/webview_controller_impel/webview_windows_controller_impel.dart b/lib/webview/webview_controller_impel/webview_windows_controller_impel.dartindex c86f2b82..04ea8899 100644--- a/lib/webview/webview_controller_impel/webview_windows_controller_impel.dart+++ b/lib/webview/webview_controller_impel/webview_windows_controller_impel.dart@@ -102,11 +102,8 @@ class WebviewWindowsItemControllerImpel} catch (_) {}});subscriptions.clear();- // disposeEnvironment() 内部已通过 headless_instances_.clear() 销毁所有 headless 实例,- // 不要额外调用 headlessWebview.dispose(),否则两个异步方法通道调用可能产生竞争,- // 导致 disposeEnvironment 先到达原生侧清除实例后,disposeHeadless 找不到条目抛出异常。+ headlessWebview?.dispose();headlessWebview = null;- WebviewController.disposeEnvironment();}// The webview_windows package does not have a method to unload the current page.diff --git a/pubspec.lock b/pubspec.lockindex d9ab61d1..e2630edd 100644--- a/pubspec.lock+++ b/pubspec.lock@@ -1615,8 +1615,8 @@ packages:dependency: "direct main"description:path: "."- ref: "9962cb9416f867d9ce9f409ccd6784e78c5f72ca"- resolved-ref: "9962cb9416f867d9ce9f409ccd6784e78c5f72ca"+ ref: b23719a4bbf3517eda7e7e42ec932b39ce5ce1e3+ resolved-ref: b23719a4bbf3517eda7e7e42ec932b39ce5ce1e3url: "https://github.com/Predidit/flutter-webview-windows.git"source: gitversion: "0.4.0"diff --git a/pubspec.yaml b/pubspec.yamlindex 610172ef..a1ceed20 100644--- a/pubspec.yaml+++ b/pubspec.yaml@@ -92,7 +92,7 @@ dependencies:webview_windows:git:url: https://github.com/Predidit/flutter-webview-windows.git- ref: 9962cb9416f867d9ce9f409ccd6784e78c5f72ca+ ref: b23719a4bbf3517eda7e7e42ec932b39ce5ce1e3desktop_webview_window:git:url: https://github.com/Predidit/linux_webview_window.git