AuroraBackground constructor

const AuroraBackground({
  1. Key? key,
  2. int ribbonCount = 4,
  3. double speed = 0.02,
  4. double blur = 30.0,
  5. double intensity = 2.8,
  6. double waveAmplitude = 120.0,
  7. double waveLength = 1.2,
  8. Color backgroundColor = Colors.transparent,
  9. List<Color> colors = const [Color(0xFF00FFAA), Color(0xFF00AFFF), Color(0xFFA855F7), Color(0xFFFF80ED)],
  10. double skyDepth = 0.3,
  11. int starCount = 120,
  12. Color starColor = Colors.white,
  13. double starIntensity = 0.6,
  14. bool enableStars = false,
  15. bool enableGradientSky = false,
  16. Brightness? backgroundBrightness,
  17. Widget? child,
})

Implementation

const AuroraBackground({
  super.key,
  this.ribbonCount = 4,
  this.speed = 0.02,
  this.blur = 30.0,
  this.intensity = 2.8,
  this.waveAmplitude = 120.0,
  this.waveLength = 1.2,
  this.backgroundColor = Colors.transparent,
  this.colors = const [
    Color(0xFF00FFAA),
    Color(0xFF00AFFF),
    Color(0xFFA855F7),
    Color(0xFFFF80ED),
  ],
  this.skyDepth = 0.3,
  this.starCount = 120,
  this.starColor = Colors.white,
  this.starIntensity = 0.6,
  this.enableStars = false,
  this.enableGradientSky = false,
  this.backgroundBrightness,
  this.child,
});