Created
July 22, 2021 13:12
-
-
Save Bharathh-Raj/bdbd3cfba39a1473d49c520f2cb880ea 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
final double _hourHandTheta = ((dateTime.hour % 12) * Constants.angleBetweenEachHourLine) + | |
(Constants.angleBetweenEachHourLine * ((1 / Constants.numberOfMinutes) * dateTime.minute)); | |
canvas.drawLine( | |
Offset(0, 0), GetOffset.getOffsetWithRadiusAndTheta(radius: hourHandLength, theta: _hourHandTheta), _paint); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment