diff --git a/thermion_flutter/thermion_flutter_web/lib/thermion_flutter_web.dart b/thermion_flutter/thermion_flutter_web/lib/thermion_flutter_web.dart index 7263b310..af334fcb 100644 --- a/thermion_flutter/thermion_flutter_web/lib/thermion_flutter_web.dart +++ b/thermion_flutter/thermion_flutter_web/lib/thermion_flutter_web.dart @@ -86,8 +86,10 @@ class ThermionFlutterWebPlugin extends ThermionFlutterPlatform { // canvas.style.display = "none"; document.body!.appendChild(canvas); - (canvas as HTMLElement).style.position = "fixed"; - (canvas as HTMLElement).style.zIndex = "-1"; + if (options.createCanvas) { + (canvas as HTMLElement).style.position = "fixed"; + (canvas as HTMLElement).style.zIndex = "-1"; + } final config = FFIFilamentConfig( backend: Backend.OPENGL,