add stub method for resizeWebCanvas to make pub.dev happy

This commit is contained in:
Nick Fisher
2025-07-03 13:04:24 +08:00
parent 3cfa26d284
commit 37f8558794
3 changed files with 12 additions and 5 deletions

View File

@@ -117,7 +117,7 @@ class ThermionFlutterWebPlugin extends ThermionFlutterPlatform {
///
void resizeCanvas(double width, double height) async {
_logger.info("Resizing canvas to ${width}x${height}");
Thermion_resizeCanvas((window.devicePixelRatio * width).ceil(),
resizeWebCanvas((window.devicePixelRatio * width).ceil(),
(window.devicePixelRatio * height).ceil());
}
}