From d21871a24cb52b6fb153bdb33ead60fb4ee5f027 Mon Sep 17 00:00:00 2001 From: andycall Date: Wed, 20 Dec 2023 15:39:55 +0800 Subject: [PATCH] fix: fix transform not exist --- webf/lib/src/rendering/box_model.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webf/lib/src/rendering/box_model.dart b/webf/lib/src/rendering/box_model.dart index ebd88b7e63..dd259f582f 100644 --- a/webf/lib/src/rendering/box_model.dart +++ b/webf/lib/src/rendering/box_model.dart @@ -46,6 +46,7 @@ Offset getLayoutTransformTo(RenderObject current, RenderObject ancestor, {bool e renderers.add(ancestor); Offset offset = Offset.zero; + final Matrix4 transform = Matrix4.identity(); for (int index = renderers.length - 1; index > 0; index -= 1) { RenderObject parentRenderer = renderers[index]; RenderObject childRenderer = renderers[index - 1]; @@ -223,7 +224,7 @@ class RenderLayoutBox extends RenderBoxModel super.move(child, after: after); _paintingOrder = null; } - + @override BoxConstraints getConstraints() { BoxConstraints boxConstraints = super.getConstraints();