AmbientLightContainer class

A container that creates an ambient light effect with a rotating gradient border

Inheritance

Constructors

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})
const

Properties

ambientIntensity double
The intensity of the ambient light (0.0 to 1.0)
final
animationDuration Duration
The speed of the ambient light animation
final
blurRadius double
The blur radius of the ambient light
final
borderRadius BorderRadius?
The border radius of the container
final
child Widget?
The child widget to display
final
colors List<Color>
The colors for the gradient border
final
glowWidthMultiplier double
The multiplier for the glow width
final
hashCode int
The hash code for this object.
no setterinherited
height double?
The height of the container
final
isPulsing bool
Whether the ambient light should pulse
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
margin EdgeInsetsGeometry?
The margin of the container
final
mouseCursor MouseCursor?
The cursor to show when hovering
final
onTap VoidCallback?
Callback when the container is tapped
final
padding EdgeInsetsGeometry?
The padding of the container
final
pulseScaleFactor double
The scale factor for the pulse effect (1.0 means no scaling)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape BoxShape
The shape of the container
final
showSharpBorder bool
Whether to show a sharp border in addition to the glow
final
spreadRadius double
The spread radius of the ambient light (border width)
final
width double?
The width of the container
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<AmbientLightContainer>
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