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.
29 lines
714 B
29 lines
714 B
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;
|
|
}
|
|
}
|