(flutter) rename resourceLoader to loadResource and don't pass to ThermionViewerFFI
This commit is contained in:
@@ -88,7 +88,7 @@ class ThermionFlutterMethodChannelPlatform extends ThermionFlutterPlatform {
|
|||||||
|
|
||||||
final config = FFIFilamentConfig(
|
final config = FFIFilamentConfig(
|
||||||
backend: backend,
|
backend: backend,
|
||||||
resourceLoader: loadAsset,
|
loadResource: loadAsset,
|
||||||
platform: platformPtr,
|
platform: platformPtr,
|
||||||
sharedContext: sharedContextPtr,
|
sharedContext: sharedContextPtr,
|
||||||
uberArchivePath: options.uberarchivePath);
|
uberArchivePath: options.uberarchivePath);
|
||||||
@@ -103,9 +103,7 @@ class ThermionFlutterMethodChannelPlatform extends ThermionFlutterPlatform {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
final viewer = ThermionViewerFFI(
|
final viewer = ThermionViewerFFI();
|
||||||
loadAssetFromUri: loadAsset,
|
|
||||||
);
|
|
||||||
|
|
||||||
await viewer.initialized;
|
await viewer.initialized;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user