From 213fc3da91055fa5777b1a0f54731f6da145ffa0 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Sat, 24 Aug 2024 16:20:06 +0800 Subject: [PATCH] fix!: (flutter) pass pixelRatio to createTexture --- .../lib/thermion/thermion_flutter_plugin.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thermion_flutter/thermion_flutter/lib/thermion/thermion_flutter_plugin.dart b/thermion_flutter/thermion_flutter/lib/thermion/thermion_flutter_plugin.dart index da02e615..8892ebb3 100644 --- a/thermion_flutter/thermion_flutter/lib/thermion/thermion_flutter_plugin.dart +++ b/thermion_flutter/thermion_flutter/lib/thermion/thermion_flutter_plugin.dart @@ -80,9 +80,9 @@ class ThermionFlutterPlugin { } static Future createTexture( - int width, int height, int offsetLeft, int offsetRight) async { + double width, double height, double offsetLeft, double offsetRight, double pixelRatio) async { return ThermionFlutterPlatform.instance - .createTexture(width, height, offsetLeft, offsetRight); + .createTexture(width, height, offsetLeft, offsetRight, pixelRatio); } static Future destroyTexture(ThermionFlutterTexture texture) async {