Skip to content

Instantly share code, notes, and snippets.

@Bharathh-Raj
Last active July 22, 2021 13:11
Show Gist options
  • Save Bharathh-Raj/284e52bfe65271deb8db14a2f4624296 to your computer and use it in GitHub Desktop.
Save Bharathh-Raj/284e52bfe65271deb8db14a2f4624296 to your computer and use it in GitHub Desktop.
final double _hourHandTheta = (dateTime.hour % 12) * Constants.angleBetweenEachHourLine);
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