GlowButton constructor

const GlowButton({
  1. Key? key,
  2. required Widget child,
  3. required VoidCallback? onPressed,
  4. Color color = Colors.blue,
  5. Color? glowColor,
  6. double size = 60.0,
  7. double glowIntensity = 0.6,
  8. Duration animationDuration = const Duration(milliseconds: 1500),
  9. bool repeatAnimation = true,
  10. double borderRadius = 30.0,
  11. bool enableScaleAnimation = true,
  12. double elevation = 4.0,
  13. Gradient? gradient,
  14. bool enabled = true,
})

Implementation

const GlowButton({
  Key? key,
  required this.child,
  required this.onPressed,
  this.color = Colors.blue,
  this.glowColor,
  this.size = 60.0,
  this.glowIntensity = 0.6,
  this.animationDuration = const Duration(milliseconds: 1500),
  this.repeatAnimation = true,
  this.borderRadius = 30.0,
  this.enableScaleAnimation = true,
  this.elevation = 4.0,
  this.gradient,
  this.enabled = true,
}) : super(key: key);