INNER CODE UNIT · Dart

NeoPopCardPainter

CRED-CLUB/neopop-flutter · lib/widgets/cards/neopop_card_painter.dart:14

class NeoPopCardPainter extends CustomPainter {
  final double depth;
  final Color? hShadowColor, vShadowColor;

  const NeoPopCardPainter({
    this.hShadowColor,
    this.vShadowColor,
    this.depth = kButtonDepth,
  });

  @override
  void paint(Canvas canvas, Size size) {
    // right shadow
    canvas
      ..drawPath(
        Path()
          ..moveTo(size.width, 0)
          ..lineTo(size.width + depth, depth)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…