You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aku_new_community/lib/painters/plus_painter.dart

22 lines
604 B

import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
class PlusPainter extends CustomPainter {
@override
void paint(Canvas canvas, Size size) {
Paint paint = Paint()
..color = Color(0xFFD8D8D8)
..strokeWidth = 8.w
..strokeCap = StrokeCap.round;
canvas.drawLine(Offset(0, 40.w), Offset(80.w, 40.w), paint);
canvas.drawLine(Offset(40.w, 0), Offset(40.w, 80.w), paint);
}
@override
bool shouldRepaint(PlusPainter oldDelegate) => false;
@override
bool shouldRebuildSemantics(PlusPainter oldDelegate) => false;
}