Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@override
void paint(Canvas canvas, Size size) {
Paint paint = new Paint()
..color = Color(0xFFc7d0df)
..strokeWidth = 6.0
..strokeCap = StrokeCap.round
..style = PaintingStyle.stroke;
canvas.drawLine(Offset(0.0, 6.0), Offset(size.width * 0.15, size.height - 6.0), paint);
canvas.drawLine(Offset(0.0, 6.0), Offset(size.width, 6.0), paint);
canvas.drawLine(Offset(size.width, 6.0), Offset(size.width * 0.85, size.height - 6.0), paint);
paint.style = PaintingStyle.fill;
paint.strokeWidth = 1.0;
canvas.drawRect(Rect.fromLTWH(size.width * 0.13, size.height - 21.0, size.width * 0.74, 21.0), paint);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.