Last active
March 5, 2019 16:17
-
-
Save salihgueler/e6fe99c1b5054850c185e1d8a6f6f936 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@override | |
void paint(Canvas canvas, Size size) { | |
Paint paint = Paint() | |
..color = Colors.red | |
..style = PaintingStyle.stroke | |
..strokeWidth = 8.0; | |
Path path = Path(); | |
// Adds an oval | |
path.addOval(Rect.fromLTWH(size.width / 2, size.height / 2, size.width / 4, size.height / 4)); | |
canvas.drawPath(path, paint); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment