GlowButton constructor
const
GlowButton({
- Key? key,
- required Widget child,
- required VoidCallback? onPressed,
- Color color = Colors.blue,
- Color? glowColor,
- double size = 60.0,
- double glowIntensity = 0.6,
- Duration animationDuration = const Duration(milliseconds: 1500),
- bool repeatAnimation = true,
- double borderRadius = 30.0,
- bool enableScaleAnimation = true,
- double elevation = 4.0,
- Gradient? gradient,
- 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);