Created
July 22, 2021 13:19
-
-
Save Bharathh-Raj/05b7c24ffa8be5461fe8d38ef9a387cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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