From 417ee4648fd71dbe56ed99af1d305d9ab278eead Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Sat, 17 May 2025 22:19:09 +0800 Subject: [PATCH] (flutter) rename resourceLoader to loadResource and don't pass to ThermionViewerFFI --- .../lib/src/thermion_flutter_method_channel_platform.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/thermion_flutter/thermion_flutter_method_channel/lib/src/thermion_flutter_method_channel_platform.dart b/thermion_flutter/thermion_flutter_method_channel/lib/src/thermion_flutter_method_channel_platform.dart index b2681cd7..6f895fb2 100644 --- a/thermion_flutter/thermion_flutter_method_channel/lib/src/thermion_flutter_method_channel_platform.dart +++ b/thermion_flutter/thermion_flutter_method_channel/lib/src/thermion_flutter_method_channel_platform.dart @@ -88,7 +88,7 @@ class ThermionFlutterMethodChannelPlatform extends ThermionFlutterPlatform { final config = FFIFilamentConfig( backend: backend, - resourceLoader: loadAsset, + loadResource: loadAsset, platform: platformPtr, sharedContext: sharedContextPtr, uberArchivePath: options.uberarchivePath); @@ -103,9 +103,7 @@ class ThermionFlutterMethodChannelPlatform extends ThermionFlutterPlatform { }); } - final viewer = ThermionViewerFFI( - loadAssetFromUri: loadAsset, - ); + final viewer = ThermionViewerFFI(); await viewer.initialized;