From 6cf4efdf31d07b32a97afc8cc2a02495b3d19dd3 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Tue, 22 Oct 2024 12:46:36 +0800 Subject: [PATCH] chore: await future in ThermionFlutterPlugin --- .../thermion_flutter/lib/src/thermion_flutter_plugin.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thermion_flutter/thermion_flutter/lib/src/thermion_flutter_plugin.dart b/thermion_flutter/thermion_flutter/lib/src/thermion_flutter_plugin.dart index 2938e0ad..2d7905b2 100644 --- a/thermion_flutter/thermion_flutter/lib/src/thermion_flutter_plugin.dart +++ b/thermion_flutter/thermion_flutter/lib/src/thermion_flutter_plugin.dart @@ -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;