Skip to content

Instantly share code, notes, and snippets.

@Bharathh-Raj
Created July 22, 2021 13:12
Show Gist options
  • Save Bharathh-Raj/bdbd3cfba39a1473d49c520f2cb880ea to your computer and use it in GitHub Desktop.
Save Bharathh-Raj/bdbd3cfba39a1473d49c520f2cb880ea to your computer and use it in GitHub Desktop.
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