OutlineAvatarGlowMultiColor constructor
- Key? key,
- required Widget child,
- required List<
Color> glowColors, - BoxShape glowShape = BoxShape.circle,
- BorderRadius? glowBorderRadius,
- Duration duration = const Duration(seconds: 2),
- Duration? startDelay,
- bool animate = true,
- bool repeat = true,
- Curve curve = Curves.fastOutSlowIn,
- double glowRadiusFactor = 0.7,
Creates a widget that provides a glowing effect with multiple colors around a child widget's outline.
The child
parameter specifies the widget around which the glow effect will be applied.
The glowColors
parameter specifies the list of colors to use for the glow effect.
The glowShape
parameter specifies the shape of the glow effect, which defaults to a circle.
The glowBorderRadius
parameter specifies the border radius for the glow effect.
The duration
parameter specifies the duration of the animation.
The startDelay
parameter specifies the delay before starting the animation.
The animate
parameter specifies whether to animate the glow effect.
The repeat
parameter specifies whether to repeat the animation.
The curve
parameter specifies the animation curve.
The glowRadiusFactor
parameter specifies the factor to control the size of the glow effect.
Implementation
const OutlineAvatarGlowMultiColor({
super.key,
required this.child,
required this.glowColors,
this.glowShape = BoxShape.circle,
this.glowBorderRadius,
this.duration = const Duration(seconds: 2),
this.startDelay,
this.animate = true,
this.repeat = true,
this.curve = Curves.fastOutSlowIn,
this.glowRadiusFactor = 0.7,
});