Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Bharathh-Raj/b03e09eff2590a179cbc745a4dbd99c9 to your computer and use it in GitHub Desktop.
Save Bharathh-Raj/b03e09eff2590a179cbc745a4dbd99c9 to your computer and use it in GitHub Desktop.
final double _minuteHandTheta = (dateTime.minute * Constants.angleBetweenEachMinuteLine) +
(Constants.angleBetweenEachMinuteLine * ((1 / Constants.numberOfSeconds) * dateTime.second));
canvas.drawLine(
Offset(0, 0), GetOffset.getOffsetWithRadiusAndTheta(radius: minuteHandLength, theta: _minuteHandTheta), _paint);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment