implement missing method handlers on Linux

This commit is contained in:
Nick Fisher
2023-08-21 05:13:56 +08:00
parent f98fb1a53d
commit 730a5e530e
3 changed files with 150 additions and 64 deletions

View File

@@ -184,8 +184,8 @@ class FilamentController {
}
Future<FilamentEntity> loadGlb(String path, {bool unlit = false}) async {
var asset = await _channel
.invokeMethod("loadGlb", [_assetManager, path, unlit ? 1 : 0]);
var asset =
await _channel.invokeMethod("loadGlb", [_assetManager, path, unlit]);
if (asset == FILAMENT_ASSET_ERROR) {
throw Exception("An error occurred loading the asset at $path");
}