Skip to content

Commit

Permalink
feat(staffs,tablatures): add vertical lines on either side
Browse files Browse the repository at this point in the history
  • Loading branch information
adil192 committed Aug 25, 2023
1 parent c28e48b commit d658a8c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/components/canvas/_canvas_background_painter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,18 @@ class CanvasBackgroundPainter extends CustomPainter {
isLine: true,
);
}

// vertical lines on either side
yield PatternElement(
Offset(lineHeight.toDouble(), topOfStaff),
Offset(lineHeight.toDouble(), topOfStaff + staffHeight),
isLine: true,
);
yield PatternElement(
Offset(size.width - lineHeight, topOfStaff),
Offset(size.width - lineHeight, topOfStaff + staffHeight),
isLine: true,
);
}
case CanvasBackgroundPattern.cornell:
// half-width line for name field
Expand Down

0 comments on commit d658a8c

Please sign in to comment.