OutlineAvatarGlowMultiColor constructor

const OutlineAvatarGlowMultiColor({
  1. Key? key,
  2. required Widget child,
  3. required List<Color> glowColors,
  4. BoxShape glowShape = BoxShape.circle,
  5. BorderRadius? glowBorderRadius,
  6. Duration duration = const Duration(seconds: 2),
  7. Duration? startDelay,
  8. bool animate = true,
  9. bool repeat = true,
  10. Curve curve = Curves.fastOutSlowIn,
  11. 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,
});