INNER CODE UNIT · Dart

xPos

flutterfx/flutterfx_widgets · lib/background-aurora/aurora_widget.dart:42

      final xPos = size.width * (0.5 + i * 0.1);
      canvas.drawRect(
        Rect.fromLTWH(xPos, 0, 40, size.height),
        streakPaint,
      );
    }

    // Radial gradient in the corner
    if (showRadialGradient) {
      final radialPaint = Paint()
        ..shader = ui.Gradient.radial(
          Offset(size.width, 0), // Top right corner
          size.width * 0.8,
          [
            Colors.blue.withOpacity(0.3),
            Colors.blue.withOpacity(0.1),
            Colors.transparent,
          ],

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…