From ba3d016c1ae9f0daf4e82cca60e45880697cedbe Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Tue, 8 Jul 2025 11:47:47 +0800 Subject: [PATCH] fix: add missing destroySwapchain argument for web --- .../thermion_flutter_web/lib/thermion_flutter_web.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thermion_flutter/thermion_flutter_web/lib/thermion_flutter_web.dart b/thermion_flutter/thermion_flutter_web/lib/thermion_flutter_web.dart index 2772f27e..70202023 100644 --- a/thermion_flutter/thermion_flutter_web/lib/thermion_flutter_web.dart +++ b/thermion_flutter/thermion_flutter_web/lib/thermion_flutter_web.dart @@ -40,7 +40,7 @@ class ThermionFlutterWebPlugin extends ThermionFlutterPlatform { return asset.buffer.asUint8List(asset.offsetInBytes); } - Future createViewer() async { + Future createViewer({bool destroySwapchain = true}) async { HTMLCanvasElement? canvas; if (FilamentApp.instance == null) { // first, try and initialize bindings to see if the user has included thermion_dart.js manually in index.html