AmbientLightContainer constructor
const
AmbientLightContainer({
- Key? key,
- List<
Color> colors = const [Colors.blue, Colors.purple], - Widget? child,
- BorderRadius? borderRadius,
- double? width,
- double? height,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- BoxShape shape = BoxShape.rectangle,
- VoidCallback? onTap,
- MouseCursor? mouseCursor,
- double ambientIntensity = 0.5,
- double spreadRadius = 4.0,
- double blurRadius = 12.0,
- Duration animationDuration = const Duration(seconds: 5),
- bool isPulsing = false,
- double pulseScaleFactor = 1.2,
- bool showSharpBorder = false,
- double glowWidthMultiplier = 3.5,
Implementation
const AmbientLightContainer({
super.key,
this.colors = const [Colors.blue, Colors.purple],
this.child,
this.borderRadius,
this.width,
this.height,
this.padding,
this.margin,
this.shape = BoxShape.rectangle,
this.onTap,
this.mouseCursor,
this.ambientIntensity = 0.5,
this.spreadRadius = 4.0,
this.blurRadius = 12.0,
this.animationDuration = const Duration(seconds: 5),
this.isPulsing = false,
this.pulseScaleFactor = 1.2,
this.showSharpBorder = false,
this.glowWidthMultiplier = 3.5,
}) : assert(ambientIntensity >= 0.0 && ambientIntensity <= 1.0),
assert(pulseScaleFactor >= 1.0),
assert(glowWidthMultiplier > 0),
assert(colors.length >= 2);