From 7e50f0317e6d2bfd1681c794711c43f48b6dc6e2 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Wed, 13 Nov 2024 10:52:59 +0800 Subject: [PATCH] feat: use new createTextureAndBindToView in ThermionTextureWidget --- .../lib/src/widgets/src/thermion_texture_widget.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/thermion_flutter/thermion_flutter/lib/src/widgets/src/thermion_texture_widget.dart b/thermion_flutter/thermion_flutter/lib/src/widgets/src/thermion_texture_widget.dart index 393b4eb6..cd7c6b83 100644 --- a/thermion_flutter/thermion_flutter/lib/src/widgets/src/thermion_texture_widget.dart +++ b/thermion_flutter/thermion_flutter/lib/src/widgets/src/thermion_texture_widget.dart @@ -4,7 +4,6 @@ import 'package:logging/logging.dart'; import 'package:thermion_dart/src/viewer/src/shared_types/view.dart' as t; import 'package:thermion_flutter/src/widgets/src/resize_observer.dart'; import 'package:thermion_flutter/thermion_flutter.dart'; -import 'package:thermion_flutter_platform_interface/thermion_flutter_texture.dart'; class ThermionTextureWidget extends StatefulWidget { /// @@ -81,7 +80,7 @@ class _ThermionTextureWidgetState extends State { "Target texture dimensions ${width}x${height} (pixel ratio : $dpr)"); _texture = await ThermionFlutterPlatform.instance - .createTexture(widget.view, width, height); + .createTextureAndBindToView(widget.view, width, height); _logger.info( "Actual texture dimensions ${_texture!.width}x${_texture!.height} (pixel ratio : $dpr)");