ButtonAnimation constructor

const ButtonAnimation({
  1. Key? key,
  2. required Widget child,
  3. Duration? borderDuration,
  4. Duration? shimmerDuration,
  5. double? borderWidth,
  6. Color? borderColor,
  7. Color? snakeColor,
  8. required VoidCallback onTap,
  9. double? borderRadius,
  10. Angle? shimmerAngle = Angle.zero,
  11. double? endAngleBorder,
  12. bool? isShimmer = true,
  13. bool? isBorder = true,
  14. Color? colorShadow,
  15. Color? isOnClickColorShadow,
  16. Color? colorCircularProgress,
  17. bool? isEnable = true,
  18. bool? isLoading = false,
  19. Color? buttonColor = Colors.amber,
})

Implementation

const ButtonAnimation({
  Key? key,
  required this.child,
  this.borderDuration,
  this.shimmerDuration,
  this.borderWidth,
  this.borderColor,
  this.snakeColor,
  required this.onTap,
  this.borderRadius,
  this.shimmerAngle = Angle.zero,
  this.endAngleBorder,
  this.isShimmer = true,
  this.isBorder = true,
  this.colorShadow,
  this.isOnClickColorShadow,
  this.colorCircularProgress,
  this.isEnable = true,
  this.isLoading = false,
  this.buttonColor = Colors.amber,
}) : super(key: key);