fix: add missing destroySwapchain argument for web

This commit is contained in:
Nick Fisher
2025-07-08 11:47:47 +08:00
parent e04d8e76c2
commit ba3d016c1a

View File

@@ -40,7 +40,7 @@ class ThermionFlutterWebPlugin extends ThermionFlutterPlatform {
return asset.buffer.asUint8List(asset.offsetInBytes);
}
Future<ThermionViewer> createViewer() async {
Future<ThermionViewer> 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