import 'package:flutter/material.dart'; import 'package:aku_new_community/base/base_style.dart'; class TabIndicatorPainter extends CustomPainter { @override void paint(Canvas canvas, Size size) { Paint paint = Paint() ..color = kPrimaryColor ..strokeCap = StrokeCap.round ..strokeWidth = 2 ..style = PaintingStyle.stroke; Path path = Path(); path.moveTo(0, 0); path.quadraticBezierTo(size.width / 2, size.height, size.width, 0); canvas.drawPath(path, paint); } @override bool shouldRebuildSemantics(covariant CustomPainter oldDelegate) { return false; } @override bool shouldRepaint(covariant CustomPainter oldDelegate) { return false; } }