Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
- <svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- width="30.631"
- height="41.586"
- viewBox="0 0 30.631 41.586"
- version="1.1"
- id="svg3">
- <defs
- id="defs7" />
- <path
- id="Path_24"
- data-name="Path 24"
- d="m 0.80300014,20.387 q 0.33699996,5.6 0.67099996,11.2 0.151,2.5 0.3,5.008 l 3.951,3.449 1.192,1.041 a 8.413,8.413 0 0 1 8.3999999,-8.91 8.415,8.415 0 0 1 8.4,8.91 q 0.6,-0.522 1.19,-1.041 1.976,-1.723 3.951,-3.449 0.148,-2.5 0.3,-5.008 0.336,-5.6 0.671,-11.2 l 0.3,-5.07 A 14.816,14.816 0 0 0 15.313,0.5 14.816,14.816 0 0 0 0.50000014,15.318 Z"
- fill="none"
- stroke="#080f57"
- stroke-linecap="round"
- stroke-linejoin="round"
- stroke-width="1" />
- </svg>
- class MyPainter extends CustomPainter {
- @override
- void paint(Canvas canvas, Size size) {
- Paint paint = Paint();
- Path path = Path();
- paint.style = PaintingStyle.stroke;
- paint.strokeWidth = 5;
- // Path number 1
- paint.color = Colors.blue;
- path = Path();
- path.moveTo(size.width * 0.03, size.height / 2);
- path.moveTo(size.width * 0.03, size.height / 2);
- path.cubicTo(size.width * 0.03, size.height * 0.59, size.width * 0.04, size.height * 0.69, size.width * 0.05, size.height * 0.78);
- path.cubicTo(size.width * 0.05, size.height * 0.82, size.width * 0.06, size.height * 0.86, size.width * 0.06, size.height * 0.9);
- path.cubicTo(size.width * 0.06, size.height * 0.9, size.width * 0.19, size.height, size.width * 0.19, size.height);
- path.cubicTo(size.width * 0.19, size.height, size.width * 0.23, size.height, size.width * 0.23, size.height);
- path.cubicTo(size.width * 0.22, size.height * 0.89, size.width * 0.35, size.height * 0.79, size.width * 0.52, size.height * 0.79);
- path.cubicTo(size.width * 0.68, size.height * 0.79, size.width * 0.81, size.height * 0.89, size.width * 0.8, size.height);
- path.cubicTo(size.width * 0.81, size.height, size.width * 0.83, size.height, size.width * 0.84, size.height);
- path.cubicTo(size.width * 0.89, size.height * 0.96, size.width * 0.93, size.height * 0.93, size.width * 0.97, size.height * 0.9);
- path.cubicTo(size.width * 0.98, size.height * 0.86, size.width * 0.98, size.height * 0.82, size.width * 0.98, size.height * 0.78);
- path.cubicTo(size.width, size.height * 0.69, size.width, size.height * 0.59, size.width, size.height / 2);
- path.cubicTo(size.width, size.height / 2, size.width * 1.02, size.height * 0.38, size.width * 1.02, size.height * 0.38);
- path.cubicTo(size.width * 1.02, size.height * 0.18, size.width * 0.79, size.height * 0.01, size.width * 0.52, size.height * 0.01);
- path.cubicTo(size.width * 0.24, size.height * 0.01, size.width * 0.02, size.height * 0.18, size.width * 0.02, size.height * 0.38);
- path.cubicTo(size.width * 0.02, size.height * 0.38, size.width * 0.03, size.height / 2, size.width * 0.03, size.height / 2);
- canvas.drawPath(path, paint);
- }
- @override
- bool shouldRepaint(CustomPainter oldDelegate) {
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement