RibbonBackground constructor

const RibbonBackground({
  1. Key? key,
  2. Color backgroundColor = Colors.transparent,
  3. List<RibbonSpec>? ribbonSpecs,
  4. int ribbonCount = 3,
  5. double baseAmplitude = 56.0,
  6. double speed = 0.5,
  7. double parallaxDepth = 0.22,
  8. double colorShiftSpeed = 0.08,
  9. bool enableBackdropBlur = true,
  10. double backdropBlurSigma = 8.0,
  11. Widget? child,
  12. Color? primaryForTint,
})

Implementation

const RibbonBackground({
  super.key,
  this.backgroundColor = Colors.transparent,
  this.ribbonSpecs,
  this.ribbonCount = 3,
  this.baseAmplitude = 56.0,
  this.speed = 0.5,
  this.parallaxDepth = 0.22,
  this.colorShiftSpeed = 0.08,
  this.enableBackdropBlur = true,
  this.backdropBlurSigma = 8.0,
  this.child,
  this.primaryForTint, // if null: inferred from first ribbon color
});