mirrored_repositories/ost_music_app_ui/lib
import 'package:flutter/material.dart';

class Line extends CustomPainter {
  const Line({this.height = 18});

  final double height;

  @override
  void paint(Canvas canvas, Size size) {
    var paint = Paint()
      ..color = const Color(0xfffcc8c0)
      ..style = PaintingStyle.stroke
      ..strokeWidth = 2.5
      ..strokeCap = StrokeCap.round;

    var path = Path()..lineTo(0, height);

    canvas.drawPath(path, paint);
  }

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