AnimatedButton constructor
const
AnimatedButton({
- Key? key,
- required Widget child,
- required VoidCallback? onPressed,
- Color color = Colors.green,
- Color? glowColor,
- double? width,
- double? height,
- double size = 60.0,
- double glowIntensity = 0.6,
- Duration? animationDuration,
- ButtonAnimationType animationType = ButtonAnimationType.glow,
- bool repeatAnimation = true,
- double borderRadius = 30.0,
- bool enableScaleAnimation = true,
- double elevation = 4.0,
- Gradient? gradient,
- bool enabled = true,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
Implementation
const AnimatedButton({
Key? key,
required this.child,
required this.onPressed,
this.color = Colors.green,
this.glowColor,
this.width,
this.height,
this.size = 60.0,
this.glowIntensity = 0.6,
this.animationDuration,
this.animationType = ButtonAnimationType.glow,
this.repeatAnimation = true,
this.borderRadius = 30.0,
this.enableScaleAnimation = true,
this.elevation = 4.0,
this.gradient,
this.enabled = true,
this.padding,
this.margin,
}) : super(key: key);