AnimatedButton constructor

const AnimatedButton({
  1. Key? key,
  2. required GestureTapCallback onTap,
  3. required Widget child,
  4. bool? enabled = true,
  5. PredefinedThemes? type = PredefinedThemes.primary,
  6. Color? color = Colors.blue,
  7. double? height = 64,
  8. List<Color>? colors,
  9. bool? isMultiColor = false,
  10. bool? darkShadow = true,
  11. double? width = 200,
  12. int? duration = 70,
  13. double? blurRadius = 0,
  14. double? borderRadius = 12,
  15. Curve? animationCurve = Curves.easeIn,
  16. double? shadowHeightBottom = 4,
  17. double? shadowHeightLeft = 0,
  18. bool? isOutline = false,
  19. Color? borderColor = Colors.black,
  20. double? borderWidth = 1,
  21. Color? blurColor = Colors.black,
  22. Color? shadowColor,
})

Implementation

const AnimatedButton({
  Key? key,
  required this.onTap,
  required this.child,
  this.enabled = true,
  this.type = PredefinedThemes.primary,
  this.color = Colors.blue,
  this.height = 64,
  this.colors,
  this.isMultiColor = false,
  this.darkShadow = true,
  this.width = 200,
  this.duration = 70,
  this.blurRadius = 0,
  this.borderRadius = 12,
  this.animationCurve = Curves.easeIn,
  this.shadowHeightBottom = 4,
  this.shadowHeightLeft = 0,
  this.isOutline = false,
  this.borderColor = Colors.black,
  this.borderWidth = 1,
  this.blurColor = Colors.black,
  this.shadowColor,
}) : super(key: key);