AnimatedButton constructor

const AnimatedButton({
  1. Key? key,
  2. required Widget child,
  3. required VoidCallback? onPressed,
  4. Color color = Colors.green,
  5. Color? glowColor,
  6. double? width,
  7. double? height,
  8. double size = 60.0,
  9. double glowIntensity = 0.6,
  10. Duration? animationDuration,
  11. ButtonAnimationType animationType = ButtonAnimationType.glow,
  12. bool repeatAnimation = true,
  13. double borderRadius = 30.0,
  14. bool enableScaleAnimation = true,
  15. double elevation = 4.0,
  16. Gradient? gradient,
  17. bool enabled = true,
  18. EdgeInsetsGeometry? padding,
  19. 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);