GlowOrb constructor
const
GlowOrb({
- Key? key,
- double size = 250.0,
- Color backgroundColor = Colors.black,
- Color eyeColor = Colors.white,
- Color? borderColor,
- double borderWidth = 1.0,
- double borderOpacity = 0.3,
- double innerGradientOpacity = 0.2,
- Duration floatAnimationDuration = const Duration(seconds: 6),
- Duration colorShiftDuration = const Duration(seconds: 20),
- Duration glowPulseDuration = const Duration(seconds: 2),
- Duration blinkDuration = const Duration(seconds: 4),
- Duration lookAroundDuration = const Duration(seconds: 10),
- Duration startupDuration = const Duration(seconds: 2),
- double floatIntensity = 8.0,
- double eyeWidth = 13.0,
- double eyeHeight = 39.0,
- double eyeSpacing = 30.0,
- double eyeBorderRadius = 3.0,
- double lookAroundIntensity = 7.0,
- bool enableFloating = true,
- bool enableColorShift = true,
- bool enableBlinking = true,
- bool enableLookAround = true,
- bool enableStartupAnimation = true,
- List<
Color> ? customColorScheme, - VoidCallback? onTap,
- List<
ColorBlobConfig> colorBlobs = const [ColorBlobConfig(), ColorBlobConfig(position: ColorBlobPosition.topRight, size: 160, colorOffset: 120, blurSigma: 35, scale: 0.5, floatMultiplier: -0.5), ColorBlobConfig(position: ColorBlobPosition.bottom, size: 170, colorOffset: 240, blurSigma: 45, scale: 0.6, floatMultiplier: 1.5)],
Creates a customizable glow orb widget
Implementation
const GlowOrb({
super.key,
this.size = 250.0,
this.backgroundColor = Colors.black,
this.eyeColor = Colors.white,
this.borderColor,
this.borderWidth = 1.0,
this.borderOpacity = 0.3,
this.innerGradientOpacity = 0.2,
this.floatAnimationDuration = const Duration(seconds: 6),
this.colorShiftDuration = const Duration(seconds: 20),
this.glowPulseDuration = const Duration(seconds: 2),
this.blinkDuration = const Duration(seconds: 4),
this.lookAroundDuration = const Duration(seconds: 10),
this.startupDuration = const Duration(seconds: 2),
this.floatIntensity = 8.0,
this.eyeWidth = 13.0,
this.eyeHeight = 39.0,
this.eyeSpacing = 30.0,
this.eyeBorderRadius = 3.0,
this.lookAroundIntensity = 7.0,
this.enableFloating = true,
this.enableColorShift = true,
this.enableBlinking = true,
this.enableLookAround = true,
this.enableStartupAnimation = true,
this.customColorScheme,
this.onTap,
this.colorBlobs = const [
ColorBlobConfig(),
ColorBlobConfig(
position: ColorBlobPosition.topRight,
size: 160,
colorOffset: 120,
blurSigma: 35,
scale: 0.5,
floatMultiplier: -0.5,
),
ColorBlobConfig(
position: ColorBlobPosition.bottom,
size: 170,
colorOffset: 240,
blurSigma: 45,
scale: 0.6,
floatMultiplier: 1.5,
),
],
});