Skip to content

Commit

Permalink
fix: fix transform not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
andycall committed Dec 20, 2023
1 parent 64cd037 commit d21871a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webf/lib/src/rendering/box_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -223,7 +224,7 @@ class RenderLayoutBox extends RenderBoxModel
super.move(child, after: after);
_paintingOrder = null;
}

@override
BoxConstraints getConstraints() {
BoxConstraints boxConstraints = super.getConstraints();
Expand Down

0 comments on commit d21871a

Please sign in to comment.