Skip to content

Instantly share code, notes, and snippets.

@creativecreatorormaybenot
Created January 30, 2020 23:14
Show Gist options
  • Save creativecreatorormaybenot/bc5289a551fc29ddaec737058bbe4615 to your computer and use it in GitHub Desktop.
Save creativecreatorormaybenot/bc5289a551fc29ddaec737058bbe4615 to your computer and use it in GitHub Desktop.
final path = Path()
..moveTo(0, 0)
..lineTo(-w / 2, 0)
..lineTo(-w / 2, sh)
// And a bunch more operations..
;
canvas.drawShadow(path, _shadowColor, _radius / 64, false);
canvas.drawPath(path, paint);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment