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)");