Skip to content

Instantly share code, notes, and snippets.

@pinyin
Created September 17, 2019 07:39
Show Gist options
  • Save pinyin/1509abf2c8c39ec2cbe6f65eb0da8d5e to your computer and use it in GitHub Desktop.
Save pinyin/1509abf2c8c39ec2cbe6f65eb0da8d5e to your computer and use it in GitHub Desktop.
Get point position from Flutter's Path
Path p = Path();
p.addOval(Rect.fromPoints(Offset(0, 0), Offset(100, 100)));
final m = p.computeMetrics().first.getTangentForOffset(75 * pi);
print(m.position);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment