mirrored_repositories/Pretty-Ui/Flutter Ui Dev/Featured/lib/features/home/screens
import 'package:flutter/material.dart';

class PriceTagPaint extends CustomPainter {
  @override
  void paint(Canvas canvas, Size size) {
    Paint paint = Paint()
      ..color = const Color.fromARGB(255, 255, 217, 151)
      ..strokeCap = StrokeCap.round
      ..style = PaintingStyle.fill;

    Path path = Path();

    path
      ..moveTo(size.width, size.height * .5)
      ..lineTo(size.width - size.width * .20, 0)
      ..lineTo(0, 0)
      ..lineTo(0, size.height)
      ..lineTo(size.width - size.width * .20, size.height)
      ..lineTo(size.width, size.height * .5)
      ..close();
    canvas.drawPath(path, paint);
  }

  @override
  bool shouldRepaint(covariant CustomPainter oldDelegate) => false;
}
