content: /* Copyright (C) 2025 Ilias Koukovinis <ilias.koukovinis@gmail.com>
   *
   * This program is free software: you can redistribute it and/or modify
   * it under the terms of the GNU Affero General Public License as
   * published by the Free Software Foundation, either version 3 of the
   * License, or (at your option) any later version.
   * 
   * This program is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   * GNU Affero General Public License for more details.
   * 
   * You should have received a copy of the GNU Affero General Public License
   * along with this program. If not, see <https://www.gnu.org/licenses/>.
   */
  
  import 'package:flutter/material.dart';
  
  class ErmisDoodlePainter extends CustomPainter {
    @override
    void paint(Canvas canvas, Size size) {
      final paint = Paint()
        ..color = Colors.grey.withOpacity(0.2) // Subtle doodle color
        ..style = PaintingStyle.stroke
        ..strokeWidth = 1.5;
  
      // Draw Circles
      for (double x = 0; x < size.width; x += 50) {
        for (double y = 0; y < size.height; y += 50) {
          canvas.drawCircle(Offset(x, y), 15, paint);
        }
      }
  
      // Draw Wavy Lines
      for (double y = 20; y < size.height; y += 100) {
        final path = Path();
        path.moveTo(0, y);
        for (double x = 0; x < size.width; x += 50) {
          path.quadraticBezierTo(x + 25, y + 20, x + 50, y);
        }
        canvas.drawPath(path, paint);
      }
    }
  
    @override
    bool shouldRepaint(covariant CustomPainter oldDelegate) {
      return false; // Redraw only if necessary
    }
  }