Skip to content

Commit 30e8250

Browse files
committed
SpacerNode: default positioningMode, aspectRatioLock and variables
SpacerNode.fromJson required positioningMode and aspectRatioLock, which every other node defaults, so a spacer without them failed to parse. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012anUJ6o6K6kjUXur8Ak8XX
1 parent a78a1c7 commit 30e8250

2 files changed

Lines changed: 33 additions & 23 deletions

File tree

‎lib/src/api/nodes/spacer_node.dart‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ class SpacerNode extends SceneNode {
4141
super.edgePins,
4242
super.parentID,
4343
super.constraints,
44+
super.positioningMode,
45+
super.aspectRatioLock,
46+
super.variables,
47+
super.multipleVariables,
4448
});
4549

4650
/// Creates a new [SpacerNode] from a JSON data.

‎lib/src/api/nodes/spacer_node.g.dart‎

Lines changed: 29 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)