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

class CirclePainter extends CustomPainter {
  Color color;
  CirclePainter(this.color);
  @override
  void paint(Canvas canvas, Size size) {
    final paint = Paint()
      ..color = color
      ..style = PaintingStyle.fill;

    final center = Offset(size.width / 2, size.height / 2);
    final radius = size.width / 2;

    canvas.drawCircle(center, radius, paint);
  }

  @override
  bool shouldRepaint(covariant CustomPainter oldDelegate) {
    return false;
  }
}
