Skip to content

Commit ca1531c

Browse files
committed
fix: analysis fixes
1 parent 433dcb6 commit ca1531c

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

packages/vyuh_node_flow/lib/connections/styles/editable_smooth_step_connection_style.dart

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,13 @@ class EditableSmoothStepConnectionStyle extends EditablePathConnectionStyle {
286286

287287
// Add quadratic bezier curve for the corner
288288
// Skip hit test rects - corner is already covered by adjacent straight segments
289-
segments.add(QuadraticSegment(
290-
controlPoint: current,
291-
end: cornerEnd,
292-
generateHitTestRects: false,
293-
));
289+
segments.add(
290+
QuadraticSegment(
291+
controlPoint: current,
292+
end: cornerEnd,
293+
generateHitTestRects: false,
294+
),
295+
);
294296
} else {
295297
// Not a perpendicular corner, just add straight segment
296298
segments.add(StraightSegment(end: current));

packages/vyuh_node_flow/lib/connections/styles/path_segments.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,7 @@ sealed class PathSegment {
7272
/// - Horizontal and vertical routing segments
7373
/// - Diagonal connections
7474
class StraightSegment extends PathSegment {
75-
const StraightSegment({
76-
required super.end,
77-
super.generateHitTestRects,
78-
});
75+
const StraightSegment({required super.end, super.generateHitTestRects});
7976

8077
@override
8178
List<Rect> getHitTestRects(Offset start, double tolerance) {

packages/vyuh_node_flow/lib/connections/styles/waypoint_builder.dart

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,11 +1532,13 @@ class WaypointBuilder {
15321532

15331533
// Add quadratic curve for the corner
15341534
// Skip hit test rects - corner is already covered by adjacent straight segments
1535-
segments.add(QuadraticSegment(
1536-
controlPoint: current,
1537-
end: cornerEnd,
1538-
generateHitTestRects: false,
1539-
));
1535+
segments.add(
1536+
QuadraticSegment(
1537+
controlPoint: current,
1538+
end: cornerEnd,
1539+
generateHitTestRects: false,
1540+
),
1541+
);
15401542
} else {
15411543
// Not a perpendicular corner - straight line
15421544
segments.add(StraightSegment(end: current));

0 commit comments

Comments
 (0)