INNER CODE UNIT · Dart
largeRect
tunitowen/fancy_bottom_navigation · lib/paint/half_painter.dart:14
final Rect largeRect = Rect.fromLTWH(10, 0, size.width - 20, 70);
final Rect afterRect =
Rect.fromLTWH(size.width - 10, (size.height / 2) - 10, 10, 10);
final path = Path();
path.arcTo(beforeRect, radians(0), radians(90), false);
path.lineTo(20, size.height / 2);
path.arcTo(largeRect, radians(0), -radians(180), false);
path.moveTo(size.width - 10, size.height / 2);
path.lineTo(size.width - 10, (size.height / 2) - 10);
path.arcTo(afterRect, radians(180), radians(-90), false);
path.close();
canvas.drawPath(path, arcPaint);
}
@override
bool shouldRepaint(CustomPainter oldDelegate) {