Skip to content

Instantly share code, notes, and snippets.

@Bharathh-Raj
Created July 22, 2021 13:19
Show Gist options
  • Save Bharathh-Raj/05b7c24ffa8be5461fe8d38ef9a387cf to your computer and use it in GitHub Desktop.
Save Bharathh-Raj/05b7c24ffa8be5461fe8d38ef9a387cf to your computer and use it in GitHub Desktop.
void _drawMinutesLine(Canvas canvas) {
for (int minute = 1; minute <= Constants.numberOfMinutes; minute++) {
final double _theta = Constants.angleBetweenEachMinuteLine * minute;
final double _radiusOfInnerPoint = _getInnerPointRadiusOfMinuteLine(minute);
final Offset _extremePoint =
GetOffset.getOffsetWithRadiusAndTheta(radius: _minuteLineExtremePointRadius, theta: _theta);
final Offset _innerPoint = GetOffset.getOffsetWithRadiusAndTheta(radius: _radiusOfInnerPoint, theta: _theta);
canvas.drawLine(_extremePoint, _innerPoint, _paint);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment