From 2bd64805a9083280e48f95b664917933717211fe Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Wed, 16 Apr 2025 13:34:08 +0800 Subject: [PATCH] logging on Windows --- .../lib/src/thermion_flutter_method_channel_platform.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 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 ec6fec46..69df4e31 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 @@ -160,6 +160,9 @@ class ThermionFlutterMethodChannelPlatform extends ThermionFlutterPlatform { _swapChain = await FilamentApp.instance! .createHeadlessSwapChain(descriptor.width, descriptor.height); + + _logger.info("Created headless swapchain ${descriptor.width}x${descriptor.height}"); + await FilamentApp.instance!.register(_swapChain!, view); } else if (Platform.isAndroid) { if (_swapChain != null) { @@ -211,8 +214,7 @@ class ThermionFlutterMethodChannelPlatform extends ThermionFlutterPlatform { PlatformTextureDescriptor texture, View view, int width, - int height) async { - + int height) async { var newTexture = await createTextureAndBindToView(view, width, height); if (newTexture == null) { throw Exception();