GlowOrb class

A highly customizable animated glow orb widget perfect for AI assistants

Inheritance

Constructors

GlowOrb.new({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
const

Properties

backgroundColor Color
Background color of the widget
final
blinkDuration Duration
Duration of blink animation
final
borderColor Color?
Border color (defaults to white with opacity)
final
borderOpacity double
Border opacity
final
borderWidth double
Border width
final
colorBlobs List<ColorBlobConfig>
Configuration for color blobs
final
colorShiftDuration Duration
Duration of color shift animation
final
customColorScheme List<Color>?
Custom color scheme for the orb
final
enableBlinking bool
Enable/disable blinking animation
final
enableColorShift bool
Enable/disable color shift animation
final
enableFloating bool
Enable/disable floating animation
final
enableLookAround bool
Enable/disable look around animation
final
enableStartupAnimation bool
Enable/disable startup animation
final
eyeBorderRadius double
Border radius of eyes
final
eyeColor Color
Color of the eyes
final
eyeHeight double
Height of eyes when open
final
eyeSpacing double
Spacing between eyes
final
eyeWidth double
Width of eyes
final
floatAnimationDuration Duration
Duration of floating animation
final
floatIntensity double
Intensity of floating movement
final
glowPulseDuration Duration
Duration of glow pulse animation
final
hashCode int
The hash code for this object.
no setterinherited
innerGradientOpacity double
Inner gradient opacity
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lookAroundDuration Duration
Duration of look around animation
final
lookAroundIntensity double
Intensity of look around movement
final
onTap VoidCallback?
Callback when orb is tapped
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size double
Size of the main orb
final
startupDuration Duration
Duration of startup animation
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<GlowOrb>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited