From 988e22fe95ab6a30451d18328d9cc3f0f66634c9 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Mon, 17 Mar 2025 16:59:57 +0800 Subject: [PATCH] rename updateViewport -> setViewport --- .../lib/src/widgets/src/thermion_texture_widget.dart | 4 ++-- 1 file changed, 2 insertions(+), 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 9e96c8af..6aa3116d 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 @@ -116,7 +116,7 @@ class _ThermionTextureWidgetState extends State { _logger.info( "Actual texture dimensions ${_texture!.width}x${_texture!.height} (pixel ratio : $dpr)"); - await widget.view.updateViewport(_texture!.width, _texture!.height); + await widget.view.setViewport(_texture!.width, _texture!.height); try { await widget.onResize?.call( @@ -248,7 +248,7 @@ class _ThermionTextureWidgetState extends State { _logger.info( "Resized texture to dimensions ${_texture!.width}x${_texture!.height} (pixel ratio : $dpr)"); - await widget.view.updateViewport(_texture!.width, _texture!.height); + await widget.view.setViewport(_texture!.width, _texture!.height); await widget.onResize?.call( Size(_texture!.width.toDouble(), _texture!.height.toDouble()),