Skip to content

Instantly share code, notes, and snippets.

@salihgueler
Created March 5, 2019 19:51
Show Gist options
  • Save salihgueler/ec85b2b9dcec625b992ce39bd221be03 to your computer and use it in GitHub Desktop.
Save salihgueler/ec85b2b9dcec625b992ce39bd221be03 to your computer and use it in GitHub Desktop.
@override
void paint(Canvas canvas, Size size) {
Paint paint = Paint()
..color = Colors.red
..style = PaintingStyle.stroke
..strokeWidth = 8.0;
Path path = Path();
path.moveTo(0, size.height / 2);
path.quadraticBezierTo(size.width / 2, size.height, size.width, size.height / 2);
canvas.drawPath(path, paint);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment