chore: await future in ThermionFlutterPlugin

This commit is contained in:
Nick Fisher committed 2024-10-23 14:45:22 +08:00
1 parent 83fe74253f
commit 6cf4efdf31
1 file changed
+1 -1
@@ -36,7 +36,7 @@ class ThermionFlutterPlugin {
await ThermionFlutterPlatform.instance.createViewer(options: options);
var camera = await _viewer!.getActiveCamera();
camera.setLensProjection();
await camera.setLensProjection();
_viewer!.onDispose(() async {
_viewer = null;