From b0087d8d546cd41bc786e81a84c9856df77474bd Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Sun, 18 May 2025 14:46:39 +0800 Subject: [PATCH] rename loadResource in ThermionFlutterWeb --- .../thermion_flutter_web/lib/thermion_flutter_web.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ce8b3975..3b0c9c21 100644 --- a/thermion_flutter/thermion_flutter_web/lib/thermion_flutter_web.dart +++ b/thermion_flutter/thermion_flutter_web/lib/thermion_flutter_web.dart @@ -93,14 +93,14 @@ class ThermionFlutterWebPlugin extends ThermionFlutterPlatform { final config = FFIFilamentConfig( backend: Backend.OPENGL, - resourceLoader: loadAsset, + loadResource: loadAsset, platform: nullptr, sharedContext: nullptr, uberArchivePath: options.uberarchivePath); await FFIFilamentApp.create(config: config); } - final viewer = ThermionViewerFFI(loadAssetFromUri: loadAsset); + final viewer = ThermionViewerFFI(); await viewer.initialized; await viewer.setViewport(canvas!.width, canvas.height);