FlowFieldBackground constructor

const FlowFieldBackground({
  1. Key? key,
  2. int particleCount = 2000,
  3. double noiseScale = 0.003,
  4. double noiseSpeed = 0.15,
  5. double particleSpeed = 40.0,
  6. double turnResponsiveness = 4.0,
  7. double lineWidth = 1.2,
  8. double segmentSeconds = 1 / 50.0,
  9. bool wrap = true,
  10. Color backgroundColor = Colors.black,
  11. Color colorA = const Color(0xFF00FFC6),
  12. Color colorB = const Color(0xFF8A6BFF),
  13. double opacity = 0.65,
  14. Widget? child,
  15. int? seed,
})

Implementation

const FlowFieldBackground({
  super.key,
  this.particleCount = 2000,
  this.noiseScale = 0.003,     // field spatial frequency (smaller => larger swirls)
  this.noiseSpeed = 0.15,      // how fast the field animates over time
  this.particleSpeed = 40.0,   // pixels/sec baseline
  this.turnResponsiveness = 4.0,// how quickly particles align to field
  this.lineWidth = 1.2,
  this.segmentSeconds = 1 / 50.0, // segment length (sec) per frame
  this.wrap = true,            // wrap around edges (continuous) or bounce
  this.backgroundColor = Colors.black,
  this.colorA = const Color(0xFF00FFC6),
  this.colorB = const Color(0xFF8A6BFF),
  this.opacity = 0.65,         // global paint alpha for strokes
  this.child,
  this.seed,
});